cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
NotAlex
Level: Powered On

HTTP Request, with PDF content showing blank

I am trying to create a flow that recieves a PDF (file name and content) via HTTP Request.

 

So i have setup a test in flow 1 to call the HTTP request and send through the pdf content, but the PDF saved in flow 2 is blank.

 

Flow 1: [Works]

  1.  gets Email Attachment
  2. Saves as PDF in SharePoint Library (correctly)
  3. Sends PDF content via HTTP to Flow 2

    Flow 1.PNG

Flow 2: [Doesnt Work]

  1. Recieves Request
  2. Saves PDF to SharePoint Library
  3. PDF is blank/Corrupt

Flow 2.PNG

 

 

Thanks!

2 ACCEPTED SOLUTIONS

Accepted Solutions
Dual Super User
Dual Super User

Re: HTTP Request, with PDF content showing blank

Hi @NotAlex 

 

Can you try wrapping the 'document' in the binary() fucntion using the expression editor in the Create a file action and run the flow. 

 

Hope this Helps!

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

View solution in original post

AlexBunning1
Level: Powered On

Re: HTTP Request, with PDF content showing blank

@yashag2255  you are a gentleman and a scholar, thank you!

 

Just a note that it is actually "Base64ToBinary([contentBytes])".

 

Cheers

Alex

View solution in original post

3 REPLIES 3
Dual Super User
Dual Super User

Re: HTTP Request, with PDF content showing blank

Hi @NotAlex 

 

Can you try wrapping the 'document' in the binary() fucntion using the expression editor in the Create a file action and run the flow. 

 

Hope this Helps!

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

View solution in original post

AlexBunning1
Level: Powered On

Re: HTTP Request, with PDF content showing blank

@yashag2255  you are a gentleman and a scholar, thank you!

 

Just a note that it is actually "Base64ToBinary([contentBytes])".

 

Cheers

Alex

View solution in original post

Dual Super User
Dual Super User

Re: HTTP Request, with PDF content showing blank

@AlexBunning1 

 

Perfect! Usually in some connectors it takes Binary and sometimes it is Base64 to Binary. 

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 345 members 4,972 guests
Please welcome our newest community members: