private int GetEntityTypeCode(IOrganizationService
service)
        {
            RetrieveEntityRequest
request = new RetrieveEntityRequest();
            request.LogicalName = "Entity Name ";
            RetrieveEntityResponse
response = (RetrieveEntityResponse)service.Execute(request);
            int
objectTypecode = response.EntityMetadata.ObjectTypeCode.Value;
            return
objectTypecode;
        }
 
No comments:
Post a Comment