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 / need help with formula
Power Apps
Unanswered

need help with formula

(1) ShareShare
ReportReport
Posted on by Microsoft Employee

i currently use the formula down below t o get the attachments from my attachment control and to make a pdf of the powerapp screen which gets send to my email. now the problem is that i have alot of datacards and when i add them in i get send multiple pdf's which i dont want. I want it to send only one pdf with all the data from the datacards and the files from the attachment control

// Add all attachments to a collection.

ClearCollect(colAttachments,ForAll(DataCardValue3_1.Attachments,{Name:Name,ContentBytes:Value}));

Collect(colAttachments,Table({Name:"Test.pdf",ContentBytes:PDF(veiligheid)}));
Collect(colAttachments,Table({Name:"Test.pdf",ContentBytes:PDF(Info)}));

 


// Send email, pass all attachments using the collection.

Office365Outlook.SendEmailV2("email@email.com","Subject","Email Body",{Attachments:colAttachments});

Categories:
I have the same question (0)
  • KeithAtherton Profile Picture
    3,709 Most Valuable Professional on at

    Hi @Anonymous,

     

    I believe the PDF function can accept only one screen or one control, so we cannot "bundle" several screens and controls together:

    https://learn.microsoft.com/en-us/power-platform/power-fx/reference/function-pdf

     

    However, a workaround would be to have a screen showing all the information you need then call the PDF function for that screen which will include everything.


    If I have answered your question, please mark your post as Solved.
    If you like my response, please give it a Thumbs Up.
    Follow me online.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 834

#2
Valantis Profile Picture

Valantis 533

#3
Haque Profile Picture

Haque 410

Last 30 days Overall leaderboard