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 / Being able to open doc...
Power Automate
Answered

Being able to open documents sent for authorisation using teams authorisation.

(0) ShareShare
ReportReport
Posted on by 12

Hi, 

I'm relatively new to Power Automate and have spent the last day designing a flow that will automate an invoice approvals process. For some reason, when I add the file (pdf) that has been sent for query as an attachment, the authoriser cannot open it, getting the error message in acrobat Pdf viewer below:

 

Adobe Acrobat could not open '(FileName)' because it is either not a supported file type or because the file has been damaged (for example, if it was sent as an email attachment and wasn't correctly decoded).

 

I have attached screenshots of the flow I have built and the parameters of both the 'get content' action and the send for auth action.

 

I wish to point out that my organisation had one that worked previously however as our sharepoint site has evolved, it is now failing.

Also, I cannot use a link to the file instead as sharing is not allowed on our sharepoint site due to GDPR regulations.

 

Any help towards getting this to work would be greatly appreciated and if anyone needs anything else please let me know.

 

Whole Auth flow.PNG
Start and wait for an approval parameters.PNG
Get File content using path parameters.PNG
Categories:
I have the same question (0)
  • Verified answer
    SamLed Profile Picture
    2,340 Moderator on at

    Hi @TomCarson-Mee,

     

    Check out "Get file content from path" output, I'm pretty sure file content is Base64 encoded. Give a try replacing "File content" dynamic content by expression: base64ToString(outputs('Get_file_content_using_path')?['body']['$content']) in your Attachment item JSON.

     

    [Edit] As it is PDF, that may be base64ToBinary(outputs('Get_file_content_using_path')?['body']['$content'])

    ______________________________________________________________

    If I have answered your question, please Accept the post as solution.
    If you like my response, please Thumbs Up.

  • TomCarson-Mee Profile Picture
    12 on at

    Hi @SamLed,

     

    Thanks for your response, I tried both versions within the JSON and I can now open the attachment in Adobe Acrobat (using the convert to binary option). However, it appears that the actual content of the file is not being pulled through as the PDF is just a blank page. If you have any idea how to fix this your advice would be greatly appreciated.

    edit: I got it to work, I had left the quotations around the content by accident.

     

    Thanks.

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 552

#2
Valantis Profile Picture

Valantis 388

#3
11manish Profile Picture

11manish 375

Last 30 days Overall leaderboard