web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Forall on collection
Power Apps
Answered

Forall on collection

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

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"

Categories:
  • Verified answer
    dinusc Profile Picture
    Microsoft Employee on at

    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

  • Verified answer
    v-micsh-msft Profile Picture
    Microsoft Employee on at

    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

  • v-micsh-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous,

     

    Do you need any further help on this topic?

     

    Regards,

    Michael

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 243 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 204 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 122

Last 30 days Overall leaderboard