private bool CheckFieldExists(IOrganizationService service, string entityName, string fieldName) { var metadata = SDKHelper.GetEntityMetadata(service, entityName); return(SDKHelper.AttributeExists(metadata.Attributes, fieldName)); }