Quantcast
Channel: SQL Server Master Data Services forum
Viewing all articles
Browse latest Browse all 1311

master data service api --->How to use InternalId query?

$
0
0
MetadataGetRequest request = new MetadataGetRequest();
 request.SearchCriteria = new MetadataSearchCriteria();
 request.SearchCriteria.Models = new Collection<Identifier>() { new Identifier { InternalId = id } };
//How to use InternalId query?
request.ResultOptions = new MetadataResultOptions() { Models = ResultType.Identifiers };
MetadataGetResponse response = MSDServiceClient.MdsClient.MetadataGet(request);
 if (response.Metadata.Models.Count > 0)
{
       model = response.Metadata.Models.FirstOrDefault();
}
else
{
       model = null;
}
            return model;
//How to use InternalId query?
Id  or Name is Ok.so I want use InternalId query.
Online Waiting....


Viewing all articles
Browse latest Browse all 1311

Trending Articles