2
爲了得到OptionSet信息,我們可以發出一個請求:如何通過Odata實現RetrieveAttributeRequest?
// 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請求嗎?
的[檢索Dynamics CRM中使用OData的所有OptionSet值(可能的複製https://stackoverflow.com/questions/39427389/retrieve-all-optionset - 值-使用-OData兼容在動力學-CRM) –