cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
vladta
New Member

How to build a string from SharPoint list values

Hello,

I have a SharePoint list  - Contacts. It has a field named Email.

I would like to generate an email using the values in the Email field.

I will use a button that once clicked will open Outlook and pass email values into To field of the email.

Launch("mailto:" & Contacts.Email.)

 

How do I build a string that would get me list's value in the following format: email1;email2 and so on?

 

What is the best way to do it?

Thank you.

1 ACCEPTED SOLUTION

Accepted Solutions
WarrenBelz
Super User
Super User

Hi @vladta ,

Like this

Concat(
   Contacts,
   Email & ";"
)

 

Please click Accept as solution 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 giving it Thumbs Up.

View solution in original post

4 REPLIES 4
WarrenBelz
Super User
Super User

Hi @vladta ,

Like this

Concat(
   Contacts,
   Email & ";"
)

 

Please click Accept as solution 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 giving it Thumbs Up.

Thank you. 
What would be the algorithm for this whole problem? Do I build an array variable, iterate SharePoint list with loop, and then populate the variable in order to plug it into "mailto:..." command? Or is there an easier way?

@vladta ,

No - you simply turn table fields into a string (email addresses separated by semi-colons) using the code I posted.

 

Please click Accept as solution 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 giving it Thumbs Up.

Awesome! Thank you so much, @WarrenBelz. Exactly what I was hoping for.

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (5,791)