Skip to main content

Notifications

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

Where does the data saved in a subgrid stored?

Posted on by 80

Hi there,

we have a contact subgrid on opportunity form and we need to retrieve the data in the subgrid in a microsoft flow. is there a way to get the data saved in the subgrid?

Please suggest.

Thanks,

Venu

  • Suggested answer
    MikeC282 Profile Picture
    MikeC282 2,095 on at
    RE: Where does the data saved in a subgrid stored?

    Hi.

    You can use a list record flow step to retrieve the list of contacts. I'm assuming with the subgrid on Opportunity. You have a lookup field on contacts linking to the primary opportunity.

    See below screenshot. You'd replace new_opportunitylookupfield with your lookup field's logical name and after the eq you'll need to add in the value of the related opportunity ID.

    6012.Flow.png

    new_opportunitylookupfield eq '@{triggerBody()?['contactid']}'

  • David Carr Profile Picture
    David Carr 45 on at
    RE: Where does the data saved in a subgrid stored?

    Yes, you should be able to, assuming this is a standard 1:N from Opportunity to Contact.  

    You'd need to create a query within a List Records action to pull that data back.   So:

    (1) Perhaps trigger the flow on a button push on the Opportunity subgrid?  (No way I can think of for Flow to know you have a new contact added to that subgrid.)

    (2) Use the OpportunityID as the key to a query that finds all contacts linked to that ID.

    (3) Loop through the List Records result, and do what you need to do...

    HTH,

    Dave

    President, Visionary Software

    http://crm-rules.com

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