Forum Discussion
Bayan000
Nov 03, 2023Copper Contributor
Sending a PDF file as an email attachment with Power Automate corrupts attachment
I have followed this great tutorial for creating and sending digital certificates to event participants (https://techcommunity.microsoft.com/t5/educator-developer-blog/send-digital-certificate-to-eve...
TommyTomek
Copper Contributor
hi all, I am new in this forum, but I wanted to share with you how I fixed it:
- base64() used to convert the output of the content body
- when appending it to variable converting the output of the compose action with base64ToBinary()
this has fixed my issue.
BR
TOmek
wei_lingfoo
Oct 16, 2024Copper Contributor
Hi, TommyTomek , can I check after you append to the variable, how did you attach the array variable to the send email action? believed you can't attach a variable as attachment in this action.
I'm facing the same issue of wanting to send a pdf/excel file over but the file appears to be corrupted after sending. Hope you could help me with it thanks.