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...
Shin_Kojima
Dec 21, 2023Copper Contributor
This should work like a charm
base64ToBinary(outputs('GET_FILE_CONTENT')?['body']?['$content'])
daisysx1987
Mar 24, 2024Copper Contributor
Where do I add this?
- GKatesMar 25, 2024Copper Contributor
daisysx1987 you will add it to your 'Compose' portion of your automation. The bigger thing you'll need to make sure (unless they've fixed this bug, haven't had any issues as of late) is to make sure you are not using the new designer mode as for some reason it populates item's slightly different and corrupts the file once created.
Hope this helps- bellis101330Mar 26, 2024Copper ContributorWere you referring to adding this code to the 'Compose' portion. I tried to find that section of the automation in the 'peek code' settings in the Send V2 email but didn't see where 'Compose' was located. Can you elaborate please?
base64ToBinary(outputs('GET_FILE_CONTENT')?['body']?['$content'])