private void GetAllEntities(ref ServiceObject so)
        {
            SourceCode.SmartObjects.Services.ServiceSDK.Objects.Method meth = so.Methods[0];

            CRMEntityList entitymetadata = new CRMEntityList();

            entitymetadata.Config = crmconfig;

            try
            {
                CRMEntityList response = CRMFunctions.CRMGetAllEntities(entitymetadata);

                so.Properties.InitResultTable();
                foreach (CRMEntityMetadata ret in response.Entities)
                {
                    for (int c = 0; c < meth.ReturnProperties.Count; c += 1)
                    {
                        Property prop = so.Properties[meth.ReturnProperties[c]];
                        prop = SetEntityMetadataProperties(prop, ret);
                    }
                    so.Properties.BindPropertiesToResultTable();
                }
            }
            catch (Exception ex)
            {
                throw;
            }
        }
コード例 #2
0
    public CRMEntityList CRMGetAllEntities(CRMEntityList EntityList)
    {
        CRMFunctions function = new CRMFunctions(EntityList.Config);

        return(function.CRMGetAllEntities(EntityList));
    }