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 Apps / Collection of Emails
Power Apps
Unanswered

Collection of Emails

(0) ShareShare
ReportReport
Posted on by 116

Hello guys,

 

I want to make a collection of mail addresses with "collect".

But it should start with an " and end with an ".

The different mails should be connected with ";".

 

Thanks for the help!

Categories:
  • Mike2500 Profile Picture
    1,247 Super User 2024 Season 1 on at

    You mention "collect", but then you describe how all the emails should be connected as a single string. If you have a SharePoint list with a person field, and you'd like all the emails of these people to be joined into a single string that starts and ends with a quote and has semi-colons between each email, you can use:

     

    """" & Concat(MySharePointList,AssignedTo.Email,";") & """"

     

    In the above, AssignedTo is the name of the person field in the sharepoint list. 

     

    The above would return something like:

    "a@company.com;b@company.com;c@company.com"
  • Cedric0404 Profile Picture
    116 on at

    You're right. Basically I want to have an textinput. All the mails, entered in this input, should be added do a string so it looks like "b@gmail.com;a@gmail.com"

  • Mike2500 Profile Picture
    1,247 Super User 2024 Season 1 on at

    You have a single text input? And you want the end result to join together multiple emails? I'm not understanding something here, where are they inputting multiple emails?

  • Cedric0404 Profile Picture
    116 on at

    the app user enters an email in text input-->click on add button (adds mail to string)-->textinput is reset -->user can enter next email

  • Mike2500 Profile Picture
    1,247 Super User 2024 Season 1 on at

    Not sure if this is going to be helpful, as you may need to store this somewhere and not just display it, but the following will work based on your description:

     

    Put the following in the OnSelect of the button:

    Collect(colEmails,txtEmail.Text);Reset(txtEmail);

    In the above, colEmails is a collection. You can name it whatever you want, and it doesn't need to be set up anywhere else first. 

     

    In a label, put the following:

    """" & Concat(colEmails,Value,";") & """"

     

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 243 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 190 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 135

Last 30 days Overall leaderboard