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 Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Carousel_PP_768x460_Wave2 (1).png

2022 Release Wave 2 Plan

Power Platform release plan for the 2022 release wave 2 describes all new features releasing from October 2022 through March 2023.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Top Solution Authors
Users online (3,080)