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

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
Highlighted
Super User III
Super User III

Re: Display all array elements in an email

@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
Highlighted
Super User III
Super User III

Re: Display all array elements in an email

@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
Highlighted
Helper III
Helper III

Re: Display all array elements in an email

Hi Scot,

 

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

 

a.JPG

 

 

Highlighted
Super User III
Super User III

Re: Display all array elements in an email

@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
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
Users online (7,760)