Hello All,
I have created a flow that would get the PDF from a SharePoint Attachment column and send it as an email attachment.
Whenever I try to open the PDF from the email , it gives me PDF is corrupt error . The PDF opens fine from the SharePoint List
Below is the flow
Under ContentBytes , I have used different expressions as given below however the PDFs are getting corrupted
Thanks in advance
Solved! Go to Solution.
@Anonymous , please use the Attachments Content directly in the Array as shown in below screenshot
@annajhaveri Thank you for responding
Have tried this but it fails.
Also tried base64(outputs('Get_file_content')?['body']) , no luck
okay thats strange, i did try using Attachment Content and it worked for me. Can you share screenshot of send email action which shows attachment property.
I am not sure why PA changes the contentbytes to AttachmentContent as shown below
Even if I change the ContentBytes to expression, it would fail
Also tried base64(outputs('Get_file_content')?['content']) , no luck
It should work with Attachment Content, i tried with Base64 it doesnt work. Are you testing by using Test function from PA, if yes, can you try actually adding new item or editing existing item and test?
I am testing with and without the test option , it still fails
Also the flow triggers for new items only
Hey @Anonymous
This has you covered: https://powerusers.microsoft.com/t5/Webinars-and-Video-Gallery/Add-multiple-attachments-to-an-email-in-Power-Automate/td-p/745237
@Jay-Encodian Thank you for the help
Would surely check this Tutorial and get back to you 🙂
User | Count |
---|---|
85 | |
38 | |
23 | |
20 | |
16 |
User | Count |
---|---|
127 | |
48 | |
46 | |
27 | |
25 |