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

Community site session details

Session Id :
Power Apps - Building Power Apps
Suggested answer

Create string of multiple emails from a person column in a collection

(0) ShareShare
ReportReport
Posted on by 437
I am trying to set up an email screen in an app I'm working on, and I am having difficulty with setting up the "To:" text input.
 
I have a collection (ex colUserList) that has a person column in it.

My goal is to gleen the email address of everyone in the collection, and make a string of emails that will populate the text input box.
 
For example, the ending string would look like:
 
person1@email.com,person2@email.com,person3@email.com,etc
 
TBH, I'm having a hard time wrapping my head around on how to do this.  Can I use a ForAll loop for this?
Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    150,771 Most Valuable Professional on at
    Create string of multiple emails from a person column in a collection
    If you want to put this output directly into the To: field of the mail
    Concat(
       colUserList,
       PersonFieldName.Email,
       ";"
    )
     
    Please ✅ Does this answer your question if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider answering Yes to Was this reply helpful?
    Visit my blog
    Practical Power Apps    LinkedIn  
  • Suggested answer
    bspangler Profile Picture
    5 on at
    Create string of multiple emails from a person column in a collection
    It certainly looks like using a collection stops us from being able to use any of the properties from the Person column. 
     
    If you were using a SharePoint list as the data source directly, it would be something like this: 
    Concat(colUserList.personColumn, ThisRecord.Email, ",")
    
  • lumberjacklurch Profile Picture
    437 on at
    Create string of multiple emails from a person column in a collection
    Maybe something like this:
     
    ForAll(ShowColumns(colUserList,User),
        If(!IsBlank(User.Email), Collect(col_UserEmails,User.Email)
        )
    )

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Tom Macfarlan – Community Spotlight

We are honored to recognize Tom Macfarlan as our Community Spotlight for October…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 1,019 Most Valuable Professional

#2
developerAJ Profile Picture

developerAJ 436

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 281 Super User 2025 Season 2

Last 30 days Overall leaderboard