Logic Apps Email attachment - PDF corrupt

Eric Watson 1 Reputation point
2021-12-06T17:17:01.833+00:00

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
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
2,996 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. MayankBargali-MSFT 70,016 Reputation points
    2021-12-07T09:13:51.207+00:00

    @Eric Watson 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

    0 comments No comments