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 / Collection HTML format
Power Apps
Answered

Collection HTML format

(0) ShareShare
ReportReport
Posted on by 355

Hi all,

 

I'm building a PDF report option which will have a dynamic table (can have different number of rows). I've found some very good examples on here, which are great, but I'm failing to get a filter option added into it. 

 

Can anyone help with where I've gone wrong? 

Create a collection of a notes SP List, filtered on a Title value. Then format the returned rows to the HTML text, which I'll then use with in a create PDF button.

ClearCollect(colNotes; AddColumns(Filter('Register Notes', Title = varID),Table({
 DateAdded: DateAdded.Text;
 NoteDetails: NoteDetails.Text;
 AddedBy: AddedBy.DisplayName
 }));
 "pdfHTML";
 "<table border= '1'>" & 
 "<tr><th colspan='2'>" & DateAdded & "</th></tr>" &
 "<tr><td>" & NotesDetails & "</td><td>" & AddedBy & "</td></tr></table>")))

 

Categories:
  • Verified answer
    Coopedup Profile Picture
    355 on at

    So this was simplified. I already have a gallery with the filtered details in. So rather than building a new collection I contact the gallery data within my create PDF htlm button. And all worked for me!.

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 248 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 192 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 135

Last 30 days Overall leaderboard