Hi Team,
I would like to create a PDF from a Word template and attach it to an email using Power Automate. Could you please guide me on how to achieve this today?
Looking forward to your support.
Already tried-Generate PDF from Document Templates in CDS & Dynamics 365 CE using native Web API with Flow - There's Something About Dynamics 365
You're on the right track! The method you linked, using the native Dynamics 365 Web API, is indeed the most efficient way to generate a PDF from a Word template without relying on SharePoint or OneDrive for Business.
However, there's a crucial update: The approach detailed in that article relies on the GenerateDocumentFromTemplate action, which is now deprecated.
GenerateDocumentFromTemplate
The Recommended Approach: Using the ExportWordDocumentToPDF Action
ExportWordDocumentToPDF
Microsoft has introduced a new action, ExportWordDocumentToPDF, which is the current and recommended method for converting Word templates to PDFs directly within Power Automate.
Here's a step-by-step guide on how to achieve this:
1. Trigger the Flow:
2. Get the Record:
3. Generate Word Document from Template:
4. Convert Word Document to PDF:
5. Compose PDF Content:
6. Create File Attachment:
7. Send Email:
Example Expression (Compose Action):
base64ToString(outputs('ExportWordDocumentToPDF_2')?['body/PDFData'])
Troubleshooting:
This revised approach using the ExportWordDocumentToPDF action provides a reliable and efficient way to create PDFs from Word templates in Power Automate without relying on external storage solutions.
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Andrés Arias as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Abhilash Warrier 100 Super User 2025 Season 2
Suresh Kulla 72 Super User 2025 Season 2
Daniyal Khaleel 59