Dave Potts
Dave Potts

Reputation: 1643

How Can I Find All Workflows Using a Custom Workflow Step

I have a custom workflow step registered into Dynamics 365 CE. How can I find all workflows that contain that workflow step?

Upvotes: 1

Views: 1679

Answers (2)

jasonscript
jasonscript

Reputation: 6170

A code-free way is

  1. Navigate to Settings > Customizations
  2. Click on "Customize the System"
  3. Expand Plugin Assemblies
  4. Select the assembly that contains your custom workflow step
  5. Select the custom workflow step (i.e. check the box)
  6. Click Show Dependencies

Custom Workflow Step Dependencies

Upvotes: 4

Dave Potts
Dave Potts

Reputation: 1643

Credit to this post: https://community.dynamics.com/365/f/dynamics-365-general-forum/366932/find-a-specific-step-in-workflow

The gist of the answer is to write FetchXML to examine the xaml attribute of the workflow entity.

E.g. looking for the plugin 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>

Upvotes: 0

Related Questions