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 / Sending an email from ...
Power Apps
Unanswered

Sending an email from powerapps of the current screen

(0) ShareShare
ReportReport
Posted on by 107

Hi guys. Please assist with this.

 

I have this code on the OnSelect property of a Button on a screen which works well:

Office365Outlook.SendEmail("l****@c*******.co.za"; "Ratios"; "This is your calculated Ratios")
 
However,
 
1) I want it to email the current screen where the button is located (either as a screenshot or a pdf attachment, but preferably as a screenshot to keep it simple). The screen's name is RatiosScreen
 
Also, instead of the email address, I want it to add the below in somehow/somewhere in the formula so the app send the emails to the logged in user
Advisor.DisplayName = MyProfile.DisplayName
 
Any tip or ideas, please?
Categories:
I have the same question (0)
  • LugenG Profile Picture
    107 on at

    I managed to figure out how to have the mail sent to the logged in user, so now I only need assistance on how to have the mail send the current screen ("RatioScreen") in the body of the email or as as an attachment, whichever is easier

     

    Please guys, thanks.

  • Verified answer
    v-bofeng-msft Profile Picture
    on at

    Hi @LugenG ,

     

    Please try:

    Office365Outlook.SendEmailV2( 
     User().Email, 
     "Subject",
     "Body", 
     { 
     Attachments: Table( 
     { 
     Name: "submittedInspection.pdf", 
     ContentBytes: PDF(RatiosScreen) 
     } 
     ) 
     } 
     ); 

     

    Best Regards,

    Bof

  • LugenG Profile Picture
    107 on at

    Works perfectly, thanks very very much 🙂

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 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard