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

Notifications

Announcements

Community site session details

Community site session details

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

Send email with attachment from SharePoint list when condition is met

(1) ShareShare
ReportReport
Posted on by

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
    68,697 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
    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
    68,697 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
    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
    68,697 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
    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
    68,697 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
    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
    68,697 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 523 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 406 Moderator

#3
abm abm Profile Picture

abm abm 245 Most Valuable Professional

Last 30 days Overall leaderboard