public Guid?GetLookupGuidPreImage(string fieldName)
 {
     return(XrmEntity.GetLookupGuid(GetFieldFromPreImage(fieldName)));
 }
 /// <summary>
 ///     NULL IF NOTHING!! FIELD MUST BE IN PREIMAGE! Returns the effective id value of the lookup field in the context
 ///     record (gets from the target entity or if not in gets from the preimage)
 /// </summary>
 public Guid?GetLookupGuid(string fieldName)
 {
     return(XrmEntity.GetLookupGuid(GetField(fieldName)));
 }