Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 Community / Forums / Sales forum / ExportPdfDocument call...
Sales forum
Unanswered

ExportPdfDocument called from Power Automate missing related table fields

Posted on by

We have a flow that generates a PDF document based on a custom table.

When the power automate calls the Dynamics API ExportPdfDocument, the PDF document is created except for the address field, which is blank.  The address field is in the contact table associated with the custom table.

I've put a get row by Id into the flow on the step before - which confirms the address is there.

If use the Export to PDF button on the record within Dynamics, the Preview / generated PDF has the address.

I'm hoping someone has seen this issue before.

Thanks in advance

Glenn

Categories:
  • Glenn.J Profile Picture
    Glenn.J on at
    RE: ExportPdfDocument called from Power Automate missing related table fields

    Thanks Leah,

    The first link is the process I followed.  All the other fields merge find through the automation.   Just not the multi-line address field.

    Will look through the other two links to see if they work better.

  • Leah Ju Profile Picture
    Leah Ju Microsoft Employee on at
    RE: ExportPdfDocument called from Power Automate missing related table fields

    Hi Glenn,

    Could you share each steps about your flow?

    You mentioned that you are using Dynamics API ExportPdfDocument in power automate, you can refer to the following link:

    https://2die4it.com/2019/08/20/generate-pdf-from-document-templates-in-cds-dynamics-365-ce-using-native-web-api-with-flow/ 

    Or you can try to another way to achieve your goal:

    (1)Create and call action in the power automate to generate word document:

    https://onlinemgblog.wordpress.com/2021/04/14/invoke-d365-otb-word-templates-from-power-automate/ 

    (2)convert word to PDF in power automate:

    https://optimallogics.com/convert-word-to-pdf-using-power-automate/ 

Helpful resources

Quick Links

Dynamics 365 Community Update – Sep 9th

Welcome to the next edition of the Community Platform Update. This is a weekly…

Announcing Our 2024 Season 2 Super Users!

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

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,263 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,112 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans