Skip to main content

Notifications

Customer experience | Sales, Customer Insights,...
Suggested answer

How to use a workflow to update related entities or Send all related contact emails

Posted on by 70

HI All,

Please guide Would anyone know if it is possible to use a workflow or Flows to update related entities or Send all related contact emailst Using any OOB functionality like the one shown below, I have a Advance find in Contacts Entity which in related to another entity and to set the Look up the Advance find QUery and send all related contacs an email.

pastedimage1652783528348v2.png

pastedimage1652783422849v1.png

https://www.itaintboring.com/dynamics-crm/dynamics-crm-tcs-tools-user-a-workflow-to-update-related-entities/

kaskelasolutions.com/.../

  • Suggested answer
    Amit Katariya007 Profile Picture
    Amit Katariya007 8,506 Super User 2024 Season 1 on at
    RE: How to use a workflow to update related entities or Send all related contact emails

    Hello Jag,

    Attendance is an entity correct? If yes then you are comparing your Attendance GUID to the Account record type field in fetch XML which is not correct.

    Update your filter criteria in fetch XML and provide correct details.

    Thank you,

    Amit Katariya

  • jagathsb Profile Picture
    jagathsb 70 on at
    RE: How to use a workflow to update related entities or Send all related contact emails

    HI Amit,

    I tried this , im getting the below error, and my flow looks like this, any suggestions

    pastedimage1652804036816v2.png

    pastedimage1652803938215v1.png

    Thanks

    Jag

  • Suggested answer
    Amit Katariya007 Profile Picture
    Amit Katariya007 8,506 Super User 2024 Season 1 on at
    RE: How to use a workflow to update related entities or Send all related contact emails

    Hello,

    Yes, you can retrieve the data but need to provide the main Entity GUID and from that we can get the related entity data.

    Follow below procedure where you will get the related entity data.

    Here I have main entity as Account and Related entity as the Contact. Go to the related entity and add a simple condition where you are checking if main entity lookup have the data. then downlead the fetch XML.

    pastedimage1652793032498v1.png

    Now create a flow and add the first connector which will get main entity GUID( For example in below flow if we add, modify or delete any account it will trigger)

    pastedimage1652793178599v3.png

    As in the below part you can see I have used the fetch xml which was downloaded form the Advanced Find. Just replace the GUID with the Dynamics GUID of main entity.

    pastedimage1652793380619v5.png

    pastedimage1652793251282v4.png

    And then it will fetch the related data when your Flow will Run/Trigger.

    pastedimage1652793479270v6.png

    pastedimage1652793603741v7.png

    Thank you,

    Amit Katariya

  • Suggested answer
    Bipin D365 Profile Picture
    Bipin D365 28,964 Super User 2024 Season 1 on at
    RE: How to use a workflow to update related entities or Send all related contact emails

    Hello,

    You can use List Rows action of Dataverse and specify fetch xml downloaded from advanced find.  Please see below blog for the same -

    crmkeeper.com/.../

  • jagathsb Profile Picture
    jagathsb 70 on at
    RE: How to use a workflow to update related entities or Send all related contact emails

    Hi Amit,

    Thanks for the reply,So it it possible to set an Advace find query in Flows, how can I do this.

    Jag

  • Suggested answer
    Amit Katariya007 Profile Picture
    Amit Katariya007 8,506 Super User 2024 Season 1 on at
    RE: How to use a workflow to update related entities or Send all related contact emails

    Hello Jagath,

    You can create a workflow activity or power automate flow which will sent an email depending on the trigger which you have mentioned.

    Thank you,

    Amit Katariya

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,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans