问题描述
我正在尝试从Dynamics 365 CRM的视图中排除应用程序用户。提取xml非常简单:
<fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="false">
<entity name="systemuser">
<attribute name="fullname" />
<attribute name="businessunitid" />
<attribute name="title" />
<attribute name="address1_telephone1" />
<attribute name="positionid" />
<attribute name="systemuserid" />
<order attribute="fullname" descending="false" />
<filter type="and">
<condition attribute="type" operator="ne" value="App User" />
</filter>
</entity>
</fetch>
我需要在查询中放置一个过滤器,例如以下伪代码:<condition attribute="type" operator="ne" value="App User" />
,这是一个允许我按用户类型过滤的字段。是否有任何字段可以确定地说用户是应用程序用户?
解决方法
通常,将在系统用户实体中使用属性访问模式= 4 创建非交互式App用户。所以应该可以。
<condition attribute="accessmode" operator="ne" value="4" />