Copy Email attachment to Azure File Share

CarmeloLoPresti-2973 61 Reputation points
2024-04-05T20:42:30.27+00:00

Hello,
I'd be grateful if someone can assist with the following:
I'm trying to use a Standard Logic App to copy an email attachment to Azure Files Storage.

I am using the "In App" Connector for Create File. Below is a picture of my flow. I'm getting as far as the attachment making it's way to my Azure File Share, but it's either corrupt or is being overwritten with incorrect information. If it's a .jpg, it just doesn't open. If it's an Excel file, the contents are replaced with the file properties.

If I attempt to add certain dynamic content, it will automatically add 2 additional "For Each" loops, which doesn't make any sense.

Standard logic app is using outbound vnet integration, and Azure File Share is behind a private endpoint. Network communication is working, or it wouldn't be dropping anything into the share. Just need to get the original attachment dropped there, and not sure what I'm doing wrong. I have case open with MS, but they're not sure either.

1

2

3

4

Azure Files
Azure Files
An Azure service that offers file shares in the cloud.
1,301 questions
Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
3,211 questions
{count} votes

2 answers

Sort by: Most helpful
  1. CarmeloLoPresti-2973 61 Reputation points
    2024-04-16T19:19:00.1666667+00:00

    Worked with MS and they were able to resolve the issue. The File Content needs to be converted as below. Thank you MS team for assisting with this issue. Hope it helps someone.

    User's image

    0 comments No comments

  2. Sumarigo-MSFT 47,021 Reputation points Microsoft Employee
    2024-04-22T08:50:01.17+00:00

    @CarmeloLoPresti-2973 I'm glad that issue got resolved and thank you for posting the solution so that others experiencing the same thing can easily reference this! Since the Microsoft Q&A community has a policy that "The question author cannot accept their own answer. They can only accept answers by others ", I'll repost your solution in case you'd like to "Accept " the answer.

    Issue: The CarmeloLoPresti-2973 is seeking assistance with a problem involving a Standard Logic App. They are attempting to copy an email attachment to Azure Files Storage using the "In App" Connector for Create File. While the attachment is successfully making its way to Azure File Share, it is either corrupt or overwritten with incorrect information. The user is experiencing issues with opening .jpg files and Excel files, where the contents are replaced with file properties. Additionally, attempts to add certain dynamic content result in the automatic addition of two additional "For Each" loops, which is unexpected. The user mentions that the Standard Logic App is using outbound vnet integration, and the Azure File Share is behind a private endpoint, with confirmed network communication.

    Solution: The File Content needs to be converted as below:
    User's image

    Please let us know if you have any further queries. I’m happy to assist you further.


    Please remember to "Accept Answer" if any answer/reply helped, so that others in the community facing similar issues can easily find the solution.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.