Skip to main content

Notifications

Dynamics 365 general forum

Check Dependencies of a specific record

Posted on by 725

I have a user that is no longer with the company and this specific user is tied to multiple workflows.  I would like to check all components tied with dependency to this particular user, is there a good way to do this?

I tried check dependency of the fullname under user entity but this parameter is too large and I would like to narrow it down to specific user only.

  

  • TylerS.Dev Profile Picture
    TylerS.Dev 725 on at
    RE: Check Dependencies of a specific record

    this works perfectly, thank you.

  • Verified answer
    Kokulan Profile Picture
    Kokulan 18,048 on at
    RE: Check Dependencies of a specific record

    When you have a condition in the process, CRM will create XAML as shown below

            <InArgument x:TypeArguments="s:Object[]" x:Key="Parameters">[New Object() { Microsoft.Xrm.Sdk.Workflow.WorkflowPropertyType.EntityReference, "systemuser", "Test&#160;Test", ConditionBranchStep2_3, "Lookup" }]</InArgument>

    When you use a user in lets say an Assign Step, crm will create the following in XAML

    <InArgument x:TypeArguments="s:Object[]" x:Key="Parameters">[New Object() { Microsoft.Xrm.Sdk.Workflow.WorkflowPropertyType.EntityReference, "systemuser", "Test Test", AssignStep3_2, "Lookup" }]</InArgument>

    So it does not matter how the user is referenced in the process, the XAML will have the name so you can query as shown below

    Could you please try the following query usign FetchXML builder on XrmToolBox?

    <fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="true" >

     <entity name="workflow" >

       <filter type="and" >

         <condition attribute="xaml" operator="like" value="%name or name part%" />

       </filter>

     </entity>

    </fetch>

  • TylerS.Dev Profile Picture
    TylerS.Dev 725 on at
    RE: Check Dependencies of a specific record

    Hi Kokulan,

    unfortunately that is not my goal.  I need to identity workflow with this user within workflow logic, either it has conditional check against this user, or have entity reference update to this user.

  • Suggested answer
    Kokulan Profile Picture
    Kokulan 18,048 on at
    RE: Check Dependencies of a specific record

    Hi

    If you would like to find all the processes owned by this user, Workflow, Action, BPF and other, you can use the following query

    ScreenClip-_5B00_514_5D00_.png

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans