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...
GKates
Copper 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
bellis101330
Mar 26, 2024Copper Contributor
Were 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'])
base64ToBinary(outputs('GET_FILE_CONTENT')?['body']?['$content'])