question

EricWatson-8580 avatar image
0 Votes"
EricWatson-8580 asked MayankBargali-MSFT answered

Logic Apps Email attachment - PDF corrupt

Newbie to Logic apps.

I created a workflow in Power Automate and this works finem but created the same flow in Logic Apps and when trying to send a PDF file as an email attachment , the attachment seems to be corrupted and is unable to be opened. A copy of the PDF is also sent to a SharePoint doc library and I have no issue opening the file from the library.

Is there an expression that I should be using to correct this? Being new to Logic Apps and Power Automate, I'm only familiar using dynamic content at the present time so any help is greatly appreciated.

Thank in advance

Error I receive when trying to open the attachment and the send an email step in Logic Apps

155401-snag-56a2c5af.png155375-snag-56a31556.png





azure-logic-apps
snag-56a2c5af.png (10.7 KiB)
snag-56a31556.png (51.3 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

MayankBargali-MSFT avatar image
0 Votes"
MayankBargali-MSFT answered

@EricWatson-8580 Your workflow looks good and I have tested the same at my end but couldn't observe any issue. Can you share more details on how you are getting the content using one drive connector?
As you have already confirmed that the same pdf opens correctly from the SharePoint site. I believe your workflow get the content from one drive and upload the pdf to the SharePoint and send an email with the attachment. Did you observe the same behaviour for all the attached files or only for the few files?

155568-image.png


image.png (37.5 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.