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 / Single Email filter ar...
Power Automate
Answered

Single Email filter array help

(1) ShareShare
ReportReport
Posted on by 98

I have a SharePoint List that has multiple columns that contain email addresses. I need to have a single email sent for all the emails listed for the 1 SharePoint Item. Below is the SharePoint Rows that include email addresses or a person card. 

How would I build an array that doesn't nest multiple For Each in it so that I can add all the email addresses to the Send To section of my email flow?

Zinerva2_0-1712688904885.png

Zinerva2_1-1712689185152.png

 

 

Categories:
I have the same question (0)
  • abm abm Profile Picture
    32,985 Most Valuable Professional on at

    Hi @Zinerva2 

     

    Is this email address you collecting from Microsoft Forms? I can't see in your screenshot you are doing Get Items. I can see create item. Could you please explain?

     

    Thanks

  • Tomac Profile Picture
    4,066 Moderator on at

    Here's an example to accomplish your goal. You'll want to use a String, not an Array, to store the email addresses. Step through the list items in a single Apply to Each action and append the current email address to your string with a semicolon after the dynamic field. Then outside of the loop, send your email.

     

    Tomac_0-1712690821591.png

     

  • Tomac Profile Picture
    4,066 Moderator on at

    Additionally, reference this solution to see how to get a bunch of values from within the returned JSON object into an array, then follow the steps above to extract the email addresses into a string for your Send An Email action: https://powerusers.microsoft.com/t5/Building-Flows/Convert-Object-to-an-Array-Within-an-Apply-to-Each/td-p/1438185

  • Zinerva2 Profile Picture
    98 on at

    I'm getting the email addresses from Create Item. I'll have a total of 18 different email addresses, each one from a different column of the create item. I'm testing with just 2 selections right now but the Join function keeps failing. 

    Zinerva2_0-1712769499091.png

    Zinerva2_1-1712769515643.png

     

     

  • Verified answer
    Zinerva2 Profile Picture
    98 on at

    I discovered the issue with my flow - it had to do with the formatting of the column in the SharePoint list. Once I changed the multiple lines of text column from enriched to plain text the join function worked as expected. 

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 April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 1,027

#2
Valantis Profile Picture

Valantis 809

#3
Haque Profile Picture

Haque 645

Last 30 days Overall leaderboard