Notifications
Announcements
"<strong> Attendance Records: " & User().FullName & "</strong>" & "<table width='100%' border='1' cellpadding='5' style='border:1px solid black; border-collapse:collapse'>" & "<tr style='background-color:#efefef'> <th>Date</th> <th><center> Time In </center></th></tr>" & Concat( FirstN( CollectionName, 2 ), "<tr><td>" & Text(DateFieldName,"dd/mm/yyyy") & "</td><td>" & TimeInFieldName & "</td></tr>" ) & "</table>"
The issue lies in the way you're using the ForAll statement within the HTML string. PowerApps doesn't directly support using ForAll in this context to iterate over a collection and embed it in a string.
ForAll
You’ll need to manually concatenate the values from the collection into your HTML table. The best approach is to use Concat() in PowerApps, which allows you to iterate over a collection or table and concatenate its values into a string. // Concatenate the rows for each record in the collection (assumed the collection is called 'AttendanceCollection') Concat( AttendanceCollection, "<tr>" & "<td>" & DateField & "</td>" & "<td><center>" & TimeInField & "</center></td>" & "</tr>" )
Concat()
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.
In our never-ending quest to improve we are simplifying the forum hierarchy…
We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
WarrenBelz 717 Most Valuable Professional
Michael E. Gernaey 329 Super User 2025 Season 2
Power Platform 1919 268