Exemplo n.º 1
0
        public static WMA.OrganizationDetail GetDetailByCtidForAPI(string ctid, bool skippingCache = false)
        {
            var request = new OrganizationManager.OrganizationRequest(2);
            var output  = EntityMgr.GetDetailForAPI(ctid, request);

            return(MapToAPI(output, request));
        }
Exemplo n.º 2
0
        //called by the search
        public static WMA.OrganizationDetail GetDetailForAPI(int id, bool skippingCache = false)
        {
            //var output = EntityHelper.GetDetail( id, skippingCache );
            var request = new OrganizationManager.OrganizationRequest(2);

            if (UtilityManager.GetAppKeyValue("includeProcessProfileDetails", true))
            {
                request.IncludingProcessProfiles = true;
            }
            if (UtilityManager.GetAppKeyValue("includeManifestDetails", true))
            {
                request.IncludingManifests = true;
            }

            var output = EntityMgr.GetDetailForAPI(id, request);

            return(MapToAPI(output, request));
        }