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

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Answered

How to create order history view on account form?

(0) ShareShare
ReportReport
Posted on by 171

Hello,

I'm trying to add a section onto the account form which would show all products purchased by customers however, I'm struggling to find a way of how to narrow it down so that it only shows that products purchased by the customer that I'm viewing at said time. 

I've managed to add a sub grid to the account form which currently shows all order lines created across all customers. Is it possible to change it so that if for example I'm viewing Customer A it will only show me the order lines that were created on orders for Customer A?

This is what it currently looks like

Dynamics.jpg

Within the sub grid properties if I select Records as 'Only related records' I cannot see the option for 'Order Lines' as an entity. At the moment I have this;

pastedimage1601376132592v1.png

I hope this makes sense.

Many thanks.

I have the same question (0)
  • Kamilcmm Profile Picture
    171 on at
    RE: How to create order history view on account form?

    Hi Henry,

    Thanks for your suggestions, I have managed to get this up an running using nested grids.

    Many thanks,

    Kamil

  • Verified answer
    Henry J. Profile Picture
    5,237 on at
    RE: How to create order history view on account form?

    Hello,

    This completely makes sense, however, subgrids can only display records that are directly related to them (so the list of orders for example).
    There is no out-of-the-box mechanism to display records that are below the child level in the relationship.

    Here you need to display Order Products related to Orders related to Account.

    What you could try to do is to use nested grids using the Editable Grid control.
    That way you should be able to see the Orders and their related Products on the Account form.
    https://docs.microsoft.com/en-us/powerapps/maker/model-driven-apps/make-grids-lists-editable-custom-control

    Another approach would be to embed a canvas app in your form to display that Order Product data.
    https://docs.microsoft.com/en-us/powerapps/maker/model-driven-apps/embed-canvas-app-in-form

    Last, please upvote this idea if you would like an out-of-the-box way to achieve this:
    https://powerusers.microsoft.com/t5/Power-Apps-Ideas/Binding-FetchXML-to-Subgrid-with-reference-to-RecordID-to-filter/idi-p/675538

    Henry

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

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

#1
Sahan Hasitha Profile Picture

Sahan Hasitha 394

#2
Nimsara Jayathilaka. Profile Picture

Nimsara Jayathilaka. 123

#3
André Arnaud de Calavon Profile Picture

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

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans