按Dynamics 365类型过滤用户

问题描述

我正在尝试从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" />

相关问答

Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其...
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。...
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbc...