cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Helper IV
Helper IV

Display all array elements in an email

I have an array variable containing various entries. I want to display all entries of the array within a email being sent from flow without having to index the array elements, as the array length can vary and hardcoding the amount of elements gives you errors, seeing that sometimes you array is smaller than the coded length. Any help on this will be great thanks.

1 ACCEPTED SOLUTION

Accepted Solutions

@gmaasz :

 

Sorry - I thought you were using a Compose action.....

 

How about this:

I added the following to the array:

12

AB

 

I set "is HTML" to Yes in the email

 

Join.jpg 

The email looks like this:

Join1.jpg 

If this works for you, please mark your post as Solved.

 

Scott

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

Scott

View solution in original post

3 REPLIES 3
Super User III
Super User III

@gmaasz:

 

Try using the Create HTML table action and create the table from the array.  Set the include headers to yes and columns to automatic.  Include the output of the HTML table action in your email.

 

If this works for you, please mark your post as Solved.

 

Scott

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

Scott

Hi Scot,

 

Thanks for the reply. This gives me an error when using the html table as you prescribedb.JPG

 

a.JPG

 

 

@gmaasz :

 

Sorry - I thought you were using a Compose action.....

 

How about this:

I added the following to the array:

12

AB

 

I set "is HTML" to Yes in the email

 

Join.jpg 

The email looks like this:

Join1.jpg 

If this works for you, please mark your post as Solved.

 

Scott

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

Scott

View solution in original post

Helpful resources

Announcements
New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Users online (64,851)