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

Adding related entities to related entities

(0) ShareShare
ReportReport
Posted on by 40

In Microsoft Dynamics I'd like to print details of Products (using "Export to PDF" button) that are part of a specific Quote. In template generator I can use "Quote" as starting entity and then add related "Quote Product", but it doesn't contain all of the "Product" columns. While I begin from "Quote Product" I see all of columns that I need, but then I cannot generate the PDF from Quote (it's associated with Quote Product, so Quote "doesn't see" it). How could I achieve my goal?

  • Suggested answer
    Yuri ji Profile Picture
    on at
    RE: Adding related entities to related entities

    Hi alqueen,

    Mahender's solution is feasible.

    You can create a flow to copy field values from a product to quote line automatically.

    Here's my example, maybe it can help you.

    The specific steps are as follows.

    1. Created several custom fields that I want. Add them to a section called Product Infopastedimage1659610573992v12.png
    2. Create an automated cloud flow, select When a row is added or modified as a trigger
      pastedimage1659608831623v2.png
    3. Add a new step in order to get a row by ID, select Existing Product(value) as Row ID.
      pastedimage1659608847153v3.png
    4. Add a new step in order to update the rows you want.
      pastedimage1659608862324v4.pngpastedimage1659608898288v5.png
    5. Save and test the flow.

    Finally, the result is displayed.

    When I add an Existing Product in Quote Line, select save and refresh it. The field into Product Info will change.

    pastedimage1659609543365v7.png

    pastedimage1659609578498v8.png

    pastedimage1659610212887v9.png

    Regards,

    Yuri Ji

  • Suggested answer
    Mahendar Pal Profile Picture
    45,095 on at
    RE: Adding related entities to related entities

    Hi,

    Yes, you are correct you won't be able to get those fields in the quote, for that you need to make those extra field available in the quotedetails entity so that you can refer them in the template.

    One possible option is to create those extra fields in the quote line entity, and then you can write a logic using plugin to copy those fields to quotedetails (from product to the new field which you created) and finally you can refer them in 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

Ramesh Kumar – Community Spotlight

We are honored to recognize Ramesh Kumar as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

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

#1
Adis Profile Picture

Adis 136 Super User 2025 Season 1

#2
Sohail Ahmed Profile Picture

Sohail Ahmed 81

#3
Jonas "Jones" Melgaard Profile Picture

Jonas "Jones" Melgaard 77 Super User 2025 Season 1

Product updates

Dynamics 365 release plans