Logic Apps SFTP - how to email file as attachment from SFTP

T West 136 Reputation points
2021-07-06T23:14:33.04+00:00

Hi,

I've built a logic apps process which uploads files from our SFTP server to Azure storage. I want to build error handling into the process which will email an attachment which wasn't successfully loaded into storage.

Using the send an email connector, I am unable to find the correct expression to use to attach the file. I have tried using the "File Content", "Item" etc.

Any ideas please how this could be done?

Thanks

Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
2,828 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. MayankBargali-MSFT 68,391 Reputation points
    2021-07-09T04:23:59.16+00:00

    @T West Can you confirm which connector you are using for the sending the email. If you are using Office 365 outlook connector then you can use the "Send an email" action. To attach the file you need to click on Add new parameter as "Attachments" and then define your file name and attachment content from your SFTP server file content.

    Note: If the previous action fails then this will never execute and there will be limitation of your mailbox how much file size can be attached.

    113185-image.png

    0 comments No comments