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

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
dinusc
Microsoft
Microsoft

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

v-micsh-msft
Community Support
Community Support

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
dinusc
Microsoft
Microsoft

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

v-micsh-msft
Community Support
Community Support

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

v-micsh-msft
Community Support
Community Support

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
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Top Solution Authors
Top Kudoed Authors
Users online (66,607)