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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / How to fix Blank PDF I...
Power Automate
Unanswered

How to fix Blank PDF Issue?

(0) ShareShare
ReportReport
Posted on by 24

picture 1.pngpicture 2.pngpicture 3.pngThe purpose of this workflow is to route emails to the appropriate recipients from a shared inbox. It primarily handles customer orders in the form of PDF files.

 

However, an issue has arisen where executing this workflow leads to the recipient receiving a blank, all-white PDF file.

 

Could someone please provide a solution to resolve this problem?

Kindly refer to the attached images of the workflow for further clarification.

 

picture 4.png

picture 3.png
picture 2.png
picture 1.png
Categories:
I have the same question (0)
  • JonDoesFlow Profile Picture
    1,304 on at

    I think you need .pdf after the attachments dynamic content in the Attachments field.

    ---------------------------------------------------------------------------


    If I have helped you with an answer, please accept this post as a solution and thumbs up my reply. Thanks !

    Blog - JonDoesFlow
    Twitter - JonDoesFlow
    YouTube - JonDoesFlow

  • JanSamuelW Profile Picture
    24 on at

    Not sure if i understand this correctly.

     

    Should i add .pdf in the "Send an email" part?

     

    2023-09-08 10_02_56-Edit your flow _ Power Automate.png

     

  • JonDoesFlow Profile Picture
    1,304 on at

    Hi,

     

    No not exactly like that.  I don't mean you should rename the variable name.  Keep the variable name as it is.

     

    But inside the Attachments field where you select the attachments variable, after that put .pdf

  • eliotcole Profile Picture
    4,390 Moderator on at

    Hi, @JanSamuelW , you may wish to append it with the contentType included.

     

    You should be able to paste following into your append action:

     

     

    {
     "name": "@{outputs('Get_Attachment_(V2)')?['body/name']}",
     "contentType": "@{outputs('Get_Attachment_(V2)')?['body/contentType']}",
     "contentBytes": "@{outputs('Get_Attachment_(V2)')?['body/contentBytes']}"
    }

     

     

    If that gives you trouble, try it with the below instead ...

    Spoiler (Highlight to read)
    {
     "@@odata.type": "#microsoft.graph.fileAttachment",
     "name": "@{outputs('Get_Attachment_(V2)')?['body/name']}",
     "contentType": "@{outputs('Get_Attachment_(V2)')?['body/contentType']}",
     "contentBytes": "@{outputs('Get_Attachment_(V2)')?['body/contentBytes']}"
    }
    { "@@odata.type": "#microsoft.graph.fileAttachment", "name": "@{outputs('Get_Attachment_(V2)')?['body/name']}", "contentType": "@{outputs('Get_Attachment_(V2)')?['body/contentType']}", "contentBytes": "@{outputs('Get_Attachment_(V2)')?['body/contentBytes']}" }

     

    If all of that gives you pain, try removing the quotes in the append around the Dynamic Values, as Power Automate can be finicky with it all as it adds them itself sometimes.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 594

#2
Valantis Profile Picture

Valantis 328

#3
David_MA Profile Picture

David_MA 281 Super User 2026 Season 1

Last 30 days Overall leaderboard