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

Super User Program Update

Three Super User rank tiers have been launched!

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

Top Solution Authors
Top Kudoed Authors
Users online (9,764)