如何使用自定义工作流程步骤查找所有工作流程

时间:2019-09-26 16:18:38

标签: dynamics-crm

我在Dynamics 365 CE中注册了一个自定义工作流程步骤。如何找到包含该工作流程步骤的所有工作流程?

2 个答案:

答案 0 :(得分:4)

一种免代码的方式是

  1. 导航至“设置”>“自定义”
  2. 点击“自定义系统”
  3. 展开Plugin Assemblies
  4. 选择包含您的自定义工作流程步骤的程序集
  5. 选择自定义工作流程步骤(即选中此框)
  6. 点击Show Dependencies

Custom Workflow Step Dependencies

答案 1 :(得分:0)

此帖子的信用:https://community.dynamics.com/365/f/dynamics-365-general-forum/366932/find-a-specific-step-in-workflow

答案的要点是编写FetchXML来检查xaml实体的workflow属性。

例如寻找插件Example.WorkflowStep

<fetch distinct="true" >
  <entity name="workflow" >
    <attribute name="createdon" />
    <attribute name="primaryentity" />
    <attribute name="statecode" />
    <attribute name="workflowid" />
    <attribute name="ownerid" />
    <attribute name="type" />
    <attribute name="owningbusinessunit" />
    <attribute name="name" />
    <attribute name="category" />
    <attribute name="xaml" />
    <filter type="and" >
      <condition attribute="type" operator="eq" value="1" />
      <condition attribute="statecode" operator="eq" value="1" />
      <filter type="and" >
        <condition attribute="rendererobjecttypecode" operator="null" />
        <condition attribute="xaml" operator="like" value="%Example.WorkflowStep%" />
      </filter>
    </filter>
    <order attribute="primaryentity" />
  </entity>
</fetch>