Кредит на этот пост: 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>