cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

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
Highlighted
Dual Super User III
Dual Super User III

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

Highlighted

@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

4 REPLIES 4
Highlighted
Dual Super User III
Dual Super User III

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

Highlighted

@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

Highlighted

@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!

Highlighted

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Top Solution Authors
Top Kudoed Authors
Users online (7,242)