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

Notifications

Announcements

No record found.

Community site session details

Community site session details

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

Sub grids and related records

(0) ShareShare
ReportReport
Posted on by

On my Project form, I have a sub grid to enter related "Ownership" records.  

pastedimage1676641226093v1.png

From the the project form, there is a button that creates a legal request and i would like to add a sub grid that contains the related ownership records of that project on the Request form:

pastedimage1676641360425v2.png

The issue i am having is, when adding the related Ownership sub grid on the Request form, there are no records showing at all.  Is there a way to populate this data with another view?

I have the same question (0)
  • Suggested answer
    ThomasN Profile Picture
    3,190 on at

    Hello, thanks for reaching out.

    The ownership has a lookup to project and that is why on the project you can see a subgrid of ownership records. The ownership also has a lookup to request and that is why you create a subgrid on Requests for ownership records. However, the issue you need to solve is the multiple ownership records related to a project showing related to the New Request. I hope I am summarizing the issue correctly.

    If this is the issue you would need to solve this with Power Automate Flow.

    1. Trigger on add of row for Request records
    2. Add Condition to validate the project lookup on request is not equal to null
    3. If false (equal to null) then add control to terminate - cancel flow
    4. If True do the following
    5. Next action List rows for Ownership records
      1. Add Filter - _new_projectfieldonowner_value eq 'ProjectId from trigger Request'
      2. Replace "new" with whatever your prefix is for the solution
      3. Replace projectfieldonowner with the logical name of the lookup field for project on the owner record
      4. Replace ProjectId from trigger Request with the dynamic content for the project lookup field on the request that triggered the flow
    6. Next action Update Row by Id for Ownership records
      1. use dynamic content to filter by List rows output for ownership record unique identifier. 
      2. This will put this action in a for each loop automatically
      3. Update the request lookup field on the ownership record with the dynamic content of the Request unique identifier from the request record that triggered the flow

    This flow will get a list of ownership records related to the same project on the request record. Then it will iterate through each of them updating the request lookup. Now your subgrid on request will show all the ownership records related to the project the request originated from. 

    Good luck!

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

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
#ManoVerse Profile Picture

#ManoVerse 93

#1
Siv Sagar Profile Picture

Siv Sagar 93 Super User 2025 Season 2

#3
Martin Dráb Profile Picture

Martin Dráb 62 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans