Skip to main content

Notifications

Microsoft Dynamics 365 | Integration, Dataverse...
Suggested answer

How can I map subgrid records from lead to opportunity?

Posted on by 148
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
  • Suggested answer
    Leah Ju Profile Picture
    Leah Ju Microsoft Employee on at
    How can I map subgrid records from lead to opportunity?
    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
  • Joseph Nasr Profile Picture
    Joseph Nasr 148 on at
    How can I map subgrid records from lead to opportunity?
    Hello Leah,
     
    How did you get the  'cr0e8_fundingentities_leadset' ?
     
    Regards, 
  • Suggested answer
    Leah Ju Profile Picture
    Leah Ju Microsoft Employee on at
    How can I map subgrid records from lead to opportunity?
    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

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Complete!

🔔 Be sure to subscribe to the new forums you are interested in to stay up to date! 🔔

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,900 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 229,275 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans