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 / Button to open email w...
Power Apps
Answered

Button to open email with to a specific person with the subject complete by information in the record being viewed.

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I have attcahed a screen shot of the screen

I want a user to be able to click on a button that opens an email partly filled in

 

I want the name of the vendor that is storred in Vendor-Name"  DataCardValue2 of Vendor_x0020_Name_DataCard1

 

and then the Body Text to have the wording "I have Noticed some information on the Database that needs to be investigated"

the user then can then add their own wording to the email before sending

 

 

Office365.Email("EGBPurchasingFL@KONE.com",(DataCardValue2.selectedItems, Vendor_x0020_Name_DataCard1),"I have Noticed some information on the Database that needs to be investigated")

Categories:
  • Verified answer
    v-yutliu-msft Profile Picture
    Microsoft Employee on at

    Hi Andy-Roberts

    Do you want to send an Email to the Item you’ve selected  and use its” Vendor-Name” as the Email’s subject?

    Could you tell me what data type of your "Vendor-Name"?

    I’ve made a similar test as follows(I use "the subject column" as a choice type):

    Screen1: create a Display form and a Button( named button1)

    Screen2: create a Text input control( named TextInput2) and a Button( named button2)

    Set the button1’s OnSelect: Navigate( Screen2,None)

    Set the Text input’s default:

    "I have Noticed some information on the Database that needs to be investigated"

    Set the button2’s OnSelect:

    'Office365'.SendEmail(DataCardValue43,DataCardValue42.Selected.Value,TextInput2.Text)

    In my test, the Email column’s value is DataCardValue43, the subject column’s value is DataCardValue42.

    As to you, you should try:

    'Office365'.SendEmail (emailcolumnvalue, DataCardValue2.Selected.Value,TextInputname.Text)

    test1_44.jpg

     

    After these configurations, you’ll navigate to the wring Email page after clicking the button in the Display form Screen. Email will be sent according to the requirements you mentioned after you clicking the button in the writing Email Screen.

     

     

     

    Best regards,

    Community Support Team _ Phoebe Liu

     

  • Verified answer
    Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Could you tell me what data type of your "Vendor-Name"? This is Text

    Do you want to send an Email to the Item you’ve selected  and use its” Vendor-Name” as the Email’s subject? -No I want the email to go to a fixed email address, using the Vendor name as the subject.

    "I have Noticed some information on the Database that needs to be investigated" - What have I done wrong?

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    With a few modifications I managed to have an email sent. 

    How do I get the new  screen with the Text input control( named TextInput2) and a Button( named button2) to close after Button 2 is pressed.

  • v-yutliu-msft Profile Picture
    Microsoft Employee on at

    Set the button2's OnSelect:

    formula1;Navigate(Screen1,None)

    formula1 is the part that you use to send email

    Screen1 is the screen name that you want to go to,you could change it to the screen name you need.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thank you for coming back, is there away for the display to shut down after the email is sent?

  • Verified answer
    v-yutliu-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

    No, just navigate to another screen.

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

#2
Mohsin Ali Profile Picture

Mohsin Ali 340

#3
WarrenBelz Profile Picture

WarrenBelz 187 Most Valuable Professional

Last 30 days Overall leaderboard