如何通过Odata实现RetrieveAttributeRequest?
How to implement RetrieveAttributeRequest via Odata?
为了获取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 请求来做到这一点?
是的,你可以,Use the Web API with Dynamics 365 metadata。
我建议您查看位于 [Organization URI]/api/data/v8.2/GlobalOptionSetDefinitions
的 OptionSetMetadata
为了获取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 请求来做到这一点?
是的,你可以,Use the Web API with Dynamics 365 metadata。
我建议您查看位于 [Organization URI]/api/data/v8.2/GlobalOptionSetDefinitions