为了获取OptionSet信息,我们可以发出请求:
// Create the request
RetrieveAttributeRequest attributeRequest = new RetrieveAttributeRequest
{
EntityLogicalName = Contact.EntityLogicalName,
LogicalName = "new_string",
RetrieveAsIfPublished = false
};
// Execute the request
RetrieveAttributeResponse attributeResponse =
(RetrieveAttributeResponse)_serviceProxy.Execute(attributeRequest);
Console.WriteLine("Retrieved the attribute {0}.",
attributeResponse.AttributeMetadata.SchemaName);
有没有办法在crm 2016中使用Odata请求?
答案 0 :(得分:2)
是的,你可以,Use the Web API with Dynamics 365 metadata。
我建议您查看[Organization URI]/api/data/v8.2/GlobalOptionSetDefinitions