web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Send email with attach...
Power Automate
Answered

Send email with attachment from SharePoint list when condition is met

(1) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi, 

 

Previously had help setting up the below flow so it didn't send multiple emails and it's working perfectly now, but I would like to be able to send attachments from the SharePoint list in the email too (there may be multiple attachments and I'm using powerapps to input the attachment and other columns on the SharePoint list) I don't want it to end up sending multiple emails again

 

Flow 1.PNG

 

Flow 2.PNG

 

Categories:
I have the same question (0)
  • Pstork1 Profile Picture
    69,129 Most Valuable Professional on at

    The key to doing this is to build an array of attachments in a variable using a Loop before you send the email.  Then you can click the icon to the right to the Attachment name and switch the input over to accept an array of attachments.  See the icon highlighted in the screenshot.

    screenshot.png

    Here's an article that explains how to create the array of attachments in a variable.

    https://flow.microsoft.com/en-us/blog/multiple-attachments-single-email/

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi, 

     

    I tried this and it would only let me create the array at top level, and just couldn't get it to work

  • Pstork1 Profile Picture
    69,129 Most Valuable Professional on at

    YOu initialize the array variable at the top level with a null value, but then you can 'Append to the Array' inside the loop.  Read the article I posted.  There a full step by step explanation with screenshots.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    I have followed this exactly from what I can see but it fails at the condition part

     

    Flow 1.PNG

     

  • Pstork1 Profile Picture
    69,129 Most Valuable Professional on at

    Your problem is something in the Send Email Action.  Can you send a screenshot of that and the loop where you are building the attachments array.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thanks for your patience with me, see below my full flow

     

     

    Flow 1.PNG

    Flow 2.PNG

     

    Flow 3.PNG

     

     

     

  • Pstork1 Profile Picture
    69,129 Most Valuable Professional on at

    That all looks correct.  In the failed run you posted earlier, what is the error in the Send Email Step?

  • Verified answer
    Community Power Platform Member Profile Picture
    Microsoft Employee on at

    I have managed to get it working, the solution seemed to be the below, this code after contentbytes 🙂 

    Flow 1.PNG

     

  • Cjohnson20 Profile Picture
    31 on at

    I am trying to do the same thing with the item ID coming from powerapps, but keep getting an error message stating to enter valid JSON.  Any idea what could be causing this?

  • Pstork1 Profile Picture
    69,129 Most Valuable Professional on at

    Please Post this as a new question.  You'll get more answers that way and others will be able to find the answer later.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 592

#2
Valantis Profile Picture

Valantis 340

#3
11manish Profile Picture

11manish 284

Last 30 days Overall leaderboard