cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

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

@Anonymous :

 

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

@Anonymous:

 

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
Anonymous
Not applicable

Hi Scot,

 

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

 

a.JPG

 

 

@Anonymous :

 

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

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Users online (3,978)