web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Answered

How to email all the related contacts present in SubGrid?

(0) ShareShare
ReportReport
Posted on by 285

Hi, I have a workflow to send emails to all the contacts related to the store (custom entity) as soon as the lead is sold. 

So far, I created the subgrid to list all the related contacts on the Store Form.  Any suggestions??

Any help much appreciated.

I have the same question (0)
  • Verified answer
    a33ik Profile Picture
    84,331 Most Valuable Professional on at

    Hello,

    You can use Kaskela Elements workflow toolkit for that purpose - kaskelasolutions.com/.../

  • nidnani Profile Picture
    285 on at

    Hi Andrew,

    I already tried the Kaskela Elements workflow toolkit but it is unable to add related Contacts for a specific store when running from the workflow.

    It adds all the related Contacts for all the stores. Below is the view, I am using to filter out related Contacts. Home depot is the store entity.

    pastedimage1610995608818v1.png

  • Suggested answer
    a33ik Profile Picture
    84,331 Most Valuable Professional on at

    Hello,

    The query that you use doesn't take into consideration the filter by your location. In order to do that build the proper FetchXml and use it in the step instead of the regular view.

  • nidnani Profile Picture
    285 on at

    Hi Andrew,

    This is the Fetch XML query that I am using.

    <?xml version="1.0"?>

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

    <entity name="contact">

    <attribute name="fullname"/>

    <attribute name="contactid"/>

    <attribute name="emailaddress1"/>

    <order descending="false" attribute="fullname"/>

    <link-entity name="rnu_homedepot" alias="aa" link-type="inner" to="rnu_homedepot_contact_store" from="rnu_homedepotid">

    <link-entity name="contact" alias="ad" link-type="inner" to="rnu_homedepotid" from="rnu_homedepot_contact_store"/>

    </link-entity>

    </entity>

    </fetch>

  • Suggested answer
    a33ik Profile Picture
    84,331 Most Valuable Professional on at

    Hello,

    You should combine that query with the following - kaskelasolutions.com/.../

  • nidnani Profile Picture
    285 on at

    Hi Andrew, I already tried but no luck. The query finds all the contacts related to all the Stores.

  • a33ik Profile Picture
    84,331 Most Valuable Professional on at

    Can you please provide the query that you used?

  • nidnani Profile Picture
    285 on at

    Thanks Andrew.  Below is the Fetch XML Query and view as well. 

    <?xml version="1.0"?>

    <fetch distinct="true" mapping="logical" output-format="xml-platform" version="1.0">
    <entity name="contact">
    <attribute name="fullname"/>
    <attribute name="contactid"/>
    <attribute name="emailaddress1"/>
    <order descending="false" attribute="fullname"/>
    <link-entity name="rnu_homedepot" alias="aa" link-type="inner" to="rnu_homedepot_contact_store" from="rnu_homedepotid">
    <link-entity name="contact" alias="ad" link-type="inner" to="rnu_homedepotid" from="rnu_homedepot_contact_store"/>
    </link-entity>
    </entity>
    </fetch>

    pastedimage1611071204548v1.png

  • Suggested answer
    a33ik Profile Picture
    84,331 Most Valuable Professional on at

    I don't see the filter that was mentioned here - kaskelasolutions.com/.../ and I believe that's the main reason why your workflow doesn't work the way it supposed to.

  • nidnani Profile Picture
    285 on at

    Hi Andrew, there's no option of adding that filter without "Contains Data". As soon as a related entity is added, "contains data" pops up every time.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Muhammad Shahzad Shafique Profile Picture

Muhammad Shahzad Sh... 69 Most Valuable Professional

#2
ManoVerse Profile Picture

ManoVerse 55 Super User 2026 Season 1

#3
11manish Profile Picture

11manish 37

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans