Skip to main content

Notifications

Microsoft Dynamics CRM (Archived)

Query child records with a workflow and perform an action if a condition is met

Posted on by 230

Hello - I am wondering if it is possible to query child records with a workflow and perform an action if a condition is met? I know this is not possible OOTB, but is there a non-code way to accomplish this? I don't need to update the child records, I just want to be able to query them and if they contain a value, do something to the parent record such as add it to a marketing list.

I am also wondering if this is possible in other versions of CRM?

Thanks!

*This post is locked for comments

  • Suggested answer
    a33ik Profile Picture
    a33ik 84,323 Most Valuable Professional on at
    RE: Query child records with a workflow and perform an action if a condition is met

    Hello,

    Theoretically that's possible using my UWT.

    Here are steps to do it:

    1. Create on-demand workflow for your child record and do whatever changes you need to do with parent entity (I assume that you have lookup that references parent record).

    2. Create FetchXml that will query child records including conditions you want to check and limit it to 1 top record.

    3. Use "Distribute Workflow" step against "FetchXml" query (step 2) and workflow (step 1).

    Good luck and feel free to get in touch here if you have any issues.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

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