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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Suggested Answer

How can I map subgrid records from lead to opportunity?

(0) ShareShare
ReportReport
Posted on by 183
Hello,
 
I created a Many to Many Relationship between Leads and a custom table called 'Funding Entities'. In the Leads Form, I added a subgrid showing the related Funding Entities of that lead.
When I qualify that Lead to Opportunity, how can I map the records in that Lead's subgrid to the subgrid in the Opportunity Form?
 
If I go to the Lead's Field mappings to Opportunity, there is no field like 'Funding Entities'.
 
Any help will be highly appreciated.
Thank you in advance
I have the same question (0)
  • Suggested answer
    Leah Ju Profile Picture
    Microsoft Employee on at
    Field mapping is only supported for 1:N relationships, and there is no OOB functionality for mapping N:N relationships at Qualifying Lead.
    Before that, you will have to use plugins.
    Now, you can use power automate to create one flow to achieve it.
    Please refer to the following steps:
    1.Make sure that there is also a N:N relationship between Opportunity and this custom table.
    2.Power Automate
    1)Trigger
    --When you qualify one lead to opportunity, ‘Originating Lead’ field will be populated this lead automatically on opportunity.
    --Using opportunity creation as trigger and this field as filter:
    2)List rows--retrieve relationship entity.
    -- The schema will look something like relationshipentitynameset
    3)Get a row by ID
    4)Relate rows:
     

    I hope you can mark my answer verified if it is helpful! If you have any questions, please feel free to contact me.
    Regards,
    Leah
  • Joseph Nasr Profile Picture
    183 on at
    Hello Leah,
     
    How did you get the  'cr0e8_fundingentities_leadset' ?
     
    Regards, 
  • Suggested answer
    Leah Ju Profile Picture
    Microsoft Employee on at
    An N:N (many-to-many) relationship depends on a special relationship table (intersect table)
    In power automate, the schema we need will look something like 'relationshiptableset'.
    Here are the blog I referenced:

    I hope you can mark my answer verified if it is helpful! If you have any questions, please feel free to contact me.
    Regards,
    Leah

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

News and Announcements

Season of Giving Solutions is Here!

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
iampranjal Profile Picture

iampranjal 65

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 38 Super User 2025 Season 2

#3
Pallavi Phade Profile Picture

Pallavi Phade 24

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans