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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / PDF Screen / Send As
Power Apps
Unanswered

PDF Screen / Send As

(0) ShareShare
ReportReport
Posted on by 394 Super User 2024 Season 1

Dear All,

 

I have the following code which PDF screen using a button and sends as a person who clicks on the button. I would like to have a generic send as though, is this possible?

 

Office365Outlook.SendEmailV2(
"email address",
"subject",
"body",
{
Attachments: Table(
{
Name: "name.pdf",
ContentBytes: PDF(screen)
}
)
}
);

 

Kind Regards

 

Daniel

Categories:
I have the same question (0)
  • VaidasG Profile Picture
    469 on at

    Hi @DLCaterhamSch,

     

    To achieve you requirement of sending an e-mail as generic account, I would take this action out of canvas app and use Power Automate flow.

    For Power Automate, Instant flows, you can configure Run only users settings, here you can specify what account is used for your connection.

    VaidasG_0-1707216340130.png

    VaidasG_1-1707216490015.png

    Obviously in your case it would be Outlook connector and your generic (service) account.

     

    Regards
    VaidasG

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

  • DLCaterhamSch Profile Picture
    394 Super User 2024 Season 1 on at

    How would this work with the PDF screen function though?

  • Verified answer
    VaidasG Profile Picture
    469 on at

    Hi @DLCaterhamSch,

     

    Made a quick test on your requirements...

     

    • Create a simple 2 step flow:

    VaidasG_0-1707224646026.png

    • In power apps call this flow passing your PDF content:
    SendPdfBlobToEmail.Run("File PDF.pdf", {file: {contentBytes: PDF(MainContainer1), name: "test.pdf"}})
     
    • Configure Run only user settings as per previous reply
     
    Regards
    VaidasG

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

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard