Skip to main content

Notifications

Announcements

No record found.

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

Query Related Contacts from Primary

Posted on by 10

I need to email the Primary Contact on each Account where any related Contacts on that Account have not completed continuing education requirements. Now, I could just run a workflow against each Contact and send an email to the Primary Contact but the Primary would get several emails. Not very elegant. 

What I would like to do is in the body of the email display a table of related Contacts that need to complete the education requirement from an Account and send an email to the Primary Contact. Any ideas on this or examples in CRM or Power Automate?  

  • Suggested answer
    Pradeep Rai Profile Picture
    Pradeep Rai 5,490 Super User 2024 Season 2 on at
    RE: Query Related Contacts from Primary

    Hi,

    You can create a Scheduler Type of Power Automate.

    1.In this power automate, you can retrieve all account based on your condition.

    2.Once Account retrieve then you can get related contacts.

    Now, you have related contacts found in point 2 and primary contact in 1.

    After this you can send email using outlook connector and
    to create the table you can use link shared by Abdul Wahab in previous comment.

    Thanks,
    Pradeep.

    Please mark this as VERIFIED if it helps.

  • Suggested answer
    Bipin D365 Profile Picture
    Bipin D365 28,964 Super User 2024 Season 1 on at
    RE: Query Related Contacts from Primary

    Hi,

    You can achieve this with Power automate. I have written a blog with step by step instruction-

    xrmdynamicscrm.wordpress.com/.../

    Please mark my answer verified if this is helpful!

    Regards,

    Bipin Kumar

    Follow my Blog: xrmdynamicscrm.wordpress.com/

  • Suggested answer
    Abdul Wahab Profile Picture
    Abdul Wahab 12,070 Super User 2024 Season 1 on at
    RE: Query Related Contacts from Primary

    Hi KansasWind,

    If you are looking for How to make a table in the email body then here you are:

    1. https://www.youtube.com/watch?v=VnWg-Eox37Q&ab_channel=RezaDorrani

    2. https://www.c-sharpcorner.com/blogs/create-a-style-html-table-in-an-email-using-power-automate

    Or you can search on google with how to make table in email using power automate

    Let me know if I can provide more details.

    Thanks

    Regards,

    Abdul Wahab

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!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

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