Hello Power Automate community.
Can you help please?
The issue I have is: when I send an Approval message via Microsoft Teams and add a PDF file, from the attachments in a SharePoint List item, the approver is unable to open the PDF file and receives a message in Adobe Acrobat Reader stating:
"Adobe Acrobat Reader could not open ''MyFileName.pdf' because it is either not a supported file type or because the file has been damaged (for example, it was sent as an email attachment and wasn't correctly decoded."
The real issue appears to be creating the file, as even if I try to open the file attached to the SharePoint List item, it gives me the same error.
Here's some more information to help.
The URL I provide in the Approval message is structured like this:
https://mycompany.sharepoint.com/sites/MySiteName/Lists/MyListName/Attachments/69ThisMustBeTheIdOfTheFileInTheAttachmentsFolder/MyFileName.pdf
The process is as follows:
Below are the actions of the Flow not expanded.
Below are the actions expanded.
Now, even before my second Flow runs and gets the attachment and send it for an approval, the file attached to the SharePoint List item doesn't open when I click on it, and it gives me the error I mentioned at the top of the post.
Any idea what I'm doing wrong, please?
Thanks in advance for all your help,
Garry
Hello @ManishSolanki,
Thanks for the tip. Your idea made me think I must be doing something wrong, so I created a whole new Flow and tested each action step-by-step. Even though I created exactly the same Flow, my new Flow worked perfectly, and didn't need the action you recommended. Clearly, I must have done something incorrect in my original Flow, but I can't see what, haha! Either way, my new Flow is working perfectly now.
I'd like to thank you for all your help and great ideas, I really appreciate it.
All the best,
Garry
Hi @GarryPope
Pls verify if html file and pdf files are being created in the onedrive. Try accessing those directly from onedrive.
If this helps & solves your problem, please remember to give a 👍 and accept my solution as it will help others in the future.
Hello @ManishSolanki,
Thanks so much for your help, especially on a weekend!
So the error I was having no longer appears, that's great. Thanks!
But when I open the PDF file, it's blank. My content is not in the file.
Any ideas where the content is being lost, please?
Thanks very much,
Garry
Hi @GarryPope
You need to add "Get file content" action between create file & add attachment to get the content of file. Pass the ID from create file action as shown below:
In "Add attachment" action pass the content from the previous action as shown below:
If this helps & solves your problem, please remember to give a 👍 and accept my solution as it will help others in the future.
Michael E. Gernaey
566
Super User 2025 Season 1
David_MA
516
Super User 2025 Season 1
stampcoin
492