cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
dmistry
Post Prodigy
Post Prodigy

How to convert Array variable to string to use in send email action

Hi,

 

I am getting unique emails stored in a Array variable but can't use it in send an email action to send out emails as its in Array form.

Can someone help me how to convert Array variable to text or string and use in send an email? below is an ouptut of my set array variable action.

Capture2.JPG

I just want to extract the emails listed in above array variable and use them in send email action, please help.

1 ACCEPTED SOLUTION

Accepted Solutions
Pstork1
Dual Super User III
Dual Super User III

1) create a String Variable

2) add a For Each loop to process the Array

3) use an Append to String action inside the loop to append each email in the array to the end of the string variable.  Make sure you also include a ';'  Like this

screenshot.png



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

View solution in original post

2 REPLIES 2
Pstork1
Dual Super User III
Dual Super User III

1) create a String Variable

2) add a For Each loop to process the Array

3) use an Append to String action inside the loop to append each email in the array to the end of the string variable.  Make sure you also include a ';'  Like this

screenshot.png



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

View solution in original post

@Pstork1 Appreciate the help, thanks so much. This worked perfectly.

Helpful resources

Announcements
Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

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

Top Solution Authors
Top Kudoed Authors
Users online (2,401)