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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested Answer

Populate Word Template Power Automate: Can you Export Quote to PDF?

(1) ShareShare
ReportReport
Posted on by 3,438
Hi All
I'm still trying to solve a basic problem of changing the order of rows in a quote by various methods. Now I know how to:
1. Create a column and change seqeunce number or new column for sorting in quotedetail entity 
2. Power automate to email the quote with the new row order/sort 
https://community.dynamics.com/blogs/post/?postid=6d013383-a908-49ee-b91c-d72d9dad06eb

The problem I have is users still need to Print preview and export to PDF so they can use outlook to email the quote using below option. Is there a way to integration power automate in a way so they use it for print preview or export to PDF (even without print preview). Is there a add-on that can handle this if natively this isnt possible. 
  • Suggested answer
    Holly Huffman Profile Picture
    6,556 Super User 2026 Season 1 on at
    hi there!
     
    good afternoon / evening / morning - depending on where you are :) 
    apologies if you've tried these already: 
     
    i found this article that seems to address how to get a word template into pdf form for your users to be able to email out to customers the quote with reordered lines. please have a try - hope this helps some! 
     
  • Suggested answer
    LR-26031237-0 Profile Picture
    4 on at

    Hi Samantha,

    As far as I know, there are really only two ways to do this today:

    1. Create your own plugin. Generate the document from the Word template and then process it further in a plugin: unpack the .docx file, sort the table rows in the document XML yourself (e.g., using the Open XML SDK), and convert the result back to a PDF. This is technically possible, but it involves a lot of custom code, is slow, and the PDF conversion is the most difficult part. The general limitations of Word templates remain: lists appear in the order the records were created, and there are no filtering options.

     

    2. A third-party tool. I would recommend this approach.

    It’s an add-on for Dynamics 365 CE that lets you design the quote layout as a template. The quote items can be sorted by any column (e.g., by your sort field), and a button in the quote generates the PDF directly in Dynamics—if desired, along with an email and attachment—without needing an external PDF server: 
    Webseite: https://smart-templates.eu/en/ 


     

  • Suggested answer
    Syed Aqib Raza Profile Picture
    287 on at

    Yes, this is achievable, but I would separate the quote generation logic from the standard Dynamics 365 Sales Export to PDF command.

    The native Export to PDF functionality uses Dynamics 365's quote document generation and does not automatically execute a custom Power Automate flow to reorder quote lines before generating the PDF.

    I would recommend one of these approaches:

    1. Power Automate + Word template: Retrieve the quote and its quote lines, sort the lines using your custom sequence number, populate a Word template, convert it to PDF, and email or save the resulting document. This gives you control over line ordering and the final document layout.

    2. Custom command bar button: Add a button such as Generate and Email Quote PDF using the modern command designer. The button can trigger a Power Automate flow or a custom API that generates the PDF with the required line ordering. Users can complete the process directly from the quote record without manually using Print Preview.

    3. Custom document generation solution: If you need advanced formatting, complex pricing calculations, or consistent output across quotes, orders, and invoices, consider a dedicated document generation solution or a custom reporting service.

    One important distinction: if users must continue using the existing native Export to PDF button, customizing that exact behavior is different from adding a new command. A custom button is generally the more maintainable option.

    For your scenario, I would start with a custom command bar button that invokes a flow, sorts quotedetail records by the sequence column, generates the PDF, and then opens or emails the document. This preserves the standard functionality while providing the required row ordering.

  • Suggested answer
    11manish Profile Picture
    1,850 Super User 2026 Season 2 on at

    Use a custom Dynamics 365 Quote command to invoke Power Automate, retrieve and sort quotedetail records by your custom sequence column, generate the Word document, convert it to PDF, and create an email draft with the PDF attached.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
11manish Profile Picture

11manish 75 Super User 2026 Season 2

#2
Travis South Profile Picture

Travis South 43

#3
Syed Aqib Raza Profile Picture

Syed Aqib Raza 40

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans