0
我想使用Dynamics CRM中的元數據的Web服務更新的使用UpdateAttributeRequest消息的一些選擇列表選項順序。雖然我可以使用MergeLabels = false選項來更改屬性的DisplayName,但picklist選項值本身似乎是不可變的。無法獲得UpdateAttributeRequest工作
我想使用Dynamics CRM中的元數據的Web服務更新的使用UpdateAttributeRequest消息的一些選擇列表選項順序。雖然我可以使用MergeLabels = false選項來更改屬性的DisplayName,但picklist選項值本身似乎是不可變的。無法獲得UpdateAttributeRequest工作
您是否試過Order Option Request?
// Create the request.
OrderOptionRequest orderOptionRequest = new OrderOptionRequest();
// Set the properties for the request
orderOptionRequest.AttributeLogicalName = "address1_addresstypecode";
orderOptionRequest.EntityLogicalName = EntityName.contact.ToString();
// Set the order for the options.
orderOptionRequest.Values = new int[] { 4, 3, 2, 1 };
// Execute the request
OrderOptionResponse orderOptionResponse = (OrderOptionResponse)metadataService.Execute(orderOptionRequest);
你走了!我知道我錯過了一些東西。非常感謝! – dsabater 2010-06-21 13:55:52