Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

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

Display order lines contract

(0) ShareShare
ReportReport
Posted on by 411

Dear all,

I would like to display the whole order lines contract related to the customer in the 'account entity', for example if i click on the Test account name, i would like to display all his order lines contracts. I have tried to achieve it but unfortunately i could only display the whole orders 

pastedimage1615543133032v1.png

Best regards,

  • Archetype Profile Picture
    411 on at
    RE: Display order lines contract

    Hi Leah Ju, like always you're my saver ! ;) Thanks you very very much :)

  • Verified answer
    Community Member Profile Picture
    on at
    RE: Display order lines contract

    Hi Partner,

    Has the problem been solved? Any updates?

    Please click Yes under "Did this answer your question?" to close this thread.

     pastedimage1615966728595v1.png

    Thanks. 

    Regards,

    Leah Ju

    Please mark as verified if the answer is helpful. Welcome to join hot discussions in Dynamics 365 Forums.

  • Verified answer
    Community Member Profile Picture
    on at
    RE: Display order lines contract

    Hi Archetype,

    This involves three entities according to your description, they are Account, Order and Order Line, and they have following OOB relationship:

    Account and Order is 1:N relationship

    Order and Order Line 1:N relationship

    So Account and Order Line has no direct relationship, what you need is that display grandchildren records(Order Line) in subgrid of grandparent’s(Account) form, Order entity is necessary.

    1.New 1:N relationship between Account and Order Line.

    (1) Create relationship and add the lookup field to the order line form.

    Go Settings > Customizations > Customize the system > Entities > Account > 1:N relationships.

     pastedimage1615776853696v1.png

    Go Settings > Customizations > Customize the system > Entities > Order line > Forms > Information

    pastedimage1615776127325v3.png

    (2) Create order line sub-grid in Account form.

    pastedimage1615776276643v4.png

    (3) Fill order account with customer value from order.

    The step is necessary, it missing step is why your sub-grid are missing data, because your lookup field is empty.

     pastedimage1615776441120v5.png

    (4) Check sub-grid in  Account form.

     pastedimage1615776570106v6.png 

    2.Nested Editable Grids

    Nested Editable Grids in D365 CE v9 UCI | D365 Demystified

    (1) Go Settings > Customizations > Customize the system > Entities > Account > Forms to select one form.

    (2) Add order sub-grid in the form.

     pastedimage1615776619590v7.png

    (3)Configure Nested Editable Grid.

    pastedimage1615776703958v8.png

    (4)Test.

    Expand one order, you can view related order line records.

    pastedimage1615776761659v9.png

    Regards,

    Leah Ju

    Please mark as verified if the answer is helpful. Welcome to join hot discussions in Dynamics 365 Forums.

  • Archetype Profile Picture
    411 on at
    RE: Display order lines contract

    Hi Piyush,

    Yes it has the value set in it ;).

    Can you please describe every step with a screenshot to how to achieve it please ? that would be really great :)

    Best regards

  • Archetype Profile Picture
    411 on at
    RE: Display order lines contract

    Hi Piyush,
    Yes it has the value set in it ;).

    Can you please describe every step with a screenshot to how to achieve it please ? that would be really great :)

    Best regards

  • ChangeFrenzoId Profile Picture
    465 on at
    RE: Display order lines contract

    Hey!

    Can you please make sure, the below lookup field which is on the OrderLine entity has the value set in it:

    pastedimage1615735830837v1.png

  • Archetype Profile Picture
    411 on at
    RE: Display order lines contract

    Hi Piyush Parate,

    Thanks for your help, unfortunately its not working for me, maybe i did something wrong. 
    I followed the steps below : 

    1. Create relationship 1:N between account entity and order lines entity 

    pastedimage1615729624622v1.png     pastedimage1615729721418v2.png

    2 : Go to Account main form that i use and added a subgrid with that relation : 

    pastedimage1615730017376v3.png

    3 : When i go back to the Test account name, there is no data displayed : 

    pastedimage1615730173252v4.png

    Best regards

    [quote user="Piyush Parate"]

    Hi!

    Yes, it is because there is no OOB relation between Account and OrderLine (of order). OOB, there is a relation between Account and Order, and that's the reason you end-up with the list/view to display the whole orders in the Account form.

    Solution:

    • Create 1:N relationship between Account and OrderLine (if you not yet created it)
    • Update the Account form
    • Add the subgrid like below, with the correct data source, i.e., "Order Product"

    pastedimage1615707311436v1.png

    [/quote]
  • Suggested answer
    ChangeFrenzoId Profile Picture
    465 on at
    RE: Display order lines contract

    Hi!

    Yes, it is because there is no OOB relation between Account and OrderLine (of order). OOB, there is a relation between Account and Order, and that's the reason you end-up with the list/view to display the whole orders in the Account form.

    Solution:

    • Create 1:N relationship between Account and OrderLine (if you not yet created it)
    • Update the Account form
    • Add the subgrid like below, with the correct data source, i.e., "Order Product"

    pastedimage1615707311436v1.png

  • Archetype Profile Picture
    411 on at
    RE: Display order lines contract

    up :( really need help please

    [quote user="Archetype"]

    Dear all,

    I would like to display the whole order lines contract related to the customer in the 'account entity', for example if i click on the Test account name, i would like to display all his order lines contracts. I have tried to achieve it but unfortunately i could only display the whole orders 

    Image

    Best regards,

    [/quote]

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 293,265 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,927 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Product updates

Dynamics 365 release plans