Skip to main content

Notifications

Power Automate - Building Flows
Unanswered

Error when opening email attachment when multiple files have been attached via a workflow

(0) ShareShare
ReportReport
Posted on by 2
Hello.
I have successfully created a flow which attaches one file to an email and I can open the file from the email.
When trying to attach more than one file, I have created an array and successfully attached all the files within a One Drive folder. The problem is, I can't open the files. When I attach a single file from the same location, I am able to open it, so I don't think it is a permissions issue.
 
Any help would be gratefully received. Thanks in advance.
  • creativeopinion Profile Picture
    creativeopinion 10,056 on at
    Error when opening email attachment when multiple files have been attached via a workflow
    It's hard to offer any recommendations without seeing your full flow and the logic behind it. If you are using the new designer, toggle it off and click each action to expand it. Upload a screenshot of your flow in edit mode.
     
    In the meantime, you might be interested in this YT Tutorial:
     

    Power Automate doesn’t have a download attachment from outlook action. In this Power Automate Video tutorial, I’ll show you how to use the Get Attachment (V2) action in combination with the Create File action to get your email attachments onto SharePoint.
    The Create File action will overwrite any files that already exist with the same name. In this tutorial, I’ll show you how you can append a timestamp to the end of a file name to prevent your file from being overwritten.

    I’ll also show you how to set up your flow so that you can trigger it manually while building it so you don’t need to wait for an email to arrive. At the end of the video I’ll show you how adding trigger conditions to your flow can prevent it from triggering if certain conditions aren’t met. Although the final flow uses the When a new email arrives in a shared mailbox (V2) trigger, you can use any of the When a new email arrives triggers for your flow. Adjust this flow to suit your needs!

    IN THIS VIDEO:
    ✓ How to Automate Downloading and Uploading Email Attachments to SharePoint
    ✓ How to Use a the Get Email (V2) action
    ✓ How to Use the Get Attachment (V2) action
    ✓ How to Create Attachment Files using the Create File Action
    ✓ How to Prevent the Create File Action from Overwriting a File
    ✓ How to use Split the Filename from its Extension
    ✓ How to Append a Timestamp to a File Name
    ✓ How to use the When a New Email Arrives in a Shared Mailbox (V2) trigger
    ✓ How to use the Convert Time Zone action
    ✓ How to add Trigger Conditions to your Flow
     
     
    Hope this helps!

    Consider giving me a ❤️ if you liked my response!

    👉 Level up your Power Automate skills by checking out my tutorials on YouTube
    👉 Tips and Tricks on TikTok and Instagram
  • PP-12012102-0 Profile Picture
    PP-12012102-0 2 on at
    Error when opening email attachment when multiple files have been attached via a workflow
    Hello.
     
    I have amended my flow to attach one file (not an array), and I add the second pre-populated file manually. I include the file extension and the two files I create can be open from the folder they are saved in, just no from the email. I'm just wondering if it's an access issue, although, Power Automate saves the files to the One Drive folder and I can open them from there directly.
  • Mark Nanneman Profile Picture
    Mark Nanneman 976 on at
    Error when opening email attachment when multiple files have been attached via a workflow
    Can you post a screenshot of how you build your file attachment array in a loop for your email attachments?  My guess is that you aren't giving your file names the proper extension (not adding .xlsx or .docx or .pdf or whatever), or there's an issue without how you're attaching the file content.
     
     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,434

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,722

Leaderboard