我有一个小工具,用于将实体从 microsoft dynamics 365 crm 2016 实例转移到另一个实例。我成功转移了没有任何依赖的实体;但是当我尝试传输某些选项集设置的实体时——比如语言、垂直、部门——我得到错误,因为这些选项集在目标实例中不存在。
我的问题是我不知道如何以编程方式检索这些扩展。我已经使用下面的代码来检索所有选项集,但用户定义的语言、垂直和其他选项集在响应中不存在。
RetrieveAllOptionSetsRequest retrieveAllOptionSetsRequest = new RetrieveAllOptionSetsRequest();
var retrieveAllOptionSetsResponse =(RetrieveAllOptionSetsResponse)sourceService.Execute(retrieveAllOptionSetsRequest);
任何想法 ?我应该向源 crm 实例发送哪个请求以获取所有用户定义的选项集?