cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
gmaasz
Level: Powered On

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

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

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
gmaasz
Level: Powered On

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

 

 

Super User
Super User

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

Incoming: New and improved badges!

Look out for new contribution recognition badges coming SOON!

firstImage

Power Platform Online Conference

Join us for the first ever Power Platform Online Conference!

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!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Users online (5,977)