cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
dmistry
Level 8

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

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

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

dmistry
Level 8

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

Power Platform Online Conference

Join us for the first ever Power Platform Online Conference!

firstImage

Incoming: New and improved badges!

Look out for new contribution recognition badges coming SOON!

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!

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Solution Authors
Top Kudoed Authors
Users online (6,613)