0

我们如何将 CRM 2011 的主题树值检索到 C# windows 应用程序中并存储在DropDownListComboBox中?

4

2 回答 2

1

您可以使用普通的 RetrieveMultiple:

_serviceProxy.EnableProxyTypes();
_service = (IOrganizationService)_serviceProxy;
_service.RetrieveMultiple(new FetchExpression("fetchxml here"));

您将无法使用高级查找来搜索主题,但实体存在并且可以使用 fetch 进行查询。这是一个例子:

<fetch version='1.0' output-format='xml-platform' mapping='logical' distinct='false'>
  <entity name='subject'>
    <attribute name='title' />
    <order attribute='title' descending='false' />
  </entity>
</fetch>

然后,您将拥有一个 EntityCollection,您可以根据需要在代码中使用它。

于 2013-03-04T07:16:29.610 回答
0
  1. 连接到服务器。
  2. 检索所需的信息(查询字符串是您的朋友)。
  3. 过滤数据以适合您的目的。
  4. 将阵列交付给您的应用程序。
  5. 创建一个新的 GUI 组件。

您是否清楚如何以代码方式执行每个步骤?

于 2012-11-18T20:22:18.043 回答