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

Forall on collection

Something I feel is so simple is the reason I cant find an answer for so please bear with. 

I'm writting an email with HTML and within the HTML I want to write every item I have stored in a collection 'colToWrite'. This collection is dynamic and variable in size so I cant use Last and run through a certain amount. 

Cant I use Forall here? "This is the body of text, here's the list"& Forall(colToWrite, allItemsInColumn) &" -list"

2 ACCEPTED SOLUTIONS

Accepted Solutions
Microsoft Employee

Re: Forall on collection

Hello,

 

You should be able to use ForAll formula. Please note though that ForAll returns a table so you will also have to use something like "Concat" function in order do create a text value:

Concat(Forall(colToWrite, allItemsInColumn), Value & "")

See more information on Concat function here: https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-concatenate

View solution in original post

Community Support Team
Community Support Team

Re: Forall on collection

The below blog could be a good reference for you:

Html Email reporting with tabular Data

 

Especially for the Formatting the Collection Data Part.

 

Regards,

Michael

Community Support Team _ Michael Shao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
Microsoft Employee

Re: Forall on collection

Hello,

 

You should be able to use ForAll formula. Please note though that ForAll returns a table so you will also have to use something like "Concat" function in order do create a text value:

Concat(Forall(colToWrite, allItemsInColumn), Value & "")

See more information on Concat function here: https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-concatenate

View solution in original post

Community Support Team
Community Support Team

Re: Forall on collection

The below blog could be a good reference for you:

Html Email reporting with tabular Data

 

Especially for the Formatting the Collection Data Part.

 

Regards,

Michael

Community Support Team _ Michael Shao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Community Support Team
Community Support Team

Re: Forall on collection

Hi @IrnBruMuffin,

 

Do you need any further help on this topic?

 

Regards,

Michael

Community Support Team _ Michael Shao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
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!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors (Last 30 Days)
Users online (6,142)