cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
Highlighted
Dual Super User II
Dual Super User II

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

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
Highlighted
Dual Super User II
Dual Super User II

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

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

Highlighted
Post Prodigy
Post Prodigy

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

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

Helpful resources

Announcements
FirstImage

Microsoft Ignite 2020

Check out the announcement of Power Platform content at Microsoft Ignite!

thirdImage

Experience what's new for Power Automate

Join us for an in-depth look at the new Power Automate features and capabilities at the free Microsoft Business Applications Launch Event.

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (8,300)