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 / Send Email without usi...
Power Apps
Answered

Send Email without using automate and add backend data into sample email of body

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi Everyone ,

 

       I need to send email without using power automate . So I use  On Success property of edit form ,I am using 

OnSuccess = Office365Outlook.SendEmail("nancy@xxxx.onmicrosoft.com", "Use Details", "Details

1. RegID:
2.  City:
3. Country:

How we pull out data of RegID, City, Country. And I don't want to use RegID:txtinput.text something .

 

Thanks,

Categories:
I have the same question (0)
  • VJR Profile Picture
    7,635 on at

    @Chitrakant27 , the EditForm1.LastSubmitted.RegID of the form will give you those details in the Form's OnSuccess property. Hope that is what you are looking for. Likewise you can use LastSubmitted.City and LastSubmitted.Country

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @VJR 

     

    Are you saying like 

    Let me try once , if any error i will post 

    1. RegID:EditForm1.LastSubmitted.RegID
    2.  City:
    3. Country:

     

  • cwebb365 Profile Picture
    3,294 Most Valuable Professional on at

    Basically, but it would be more like: 

    Office365Outlook.SendEmail("nancy@xxxx.onmicrosoft.com", "Use Details", "Details

    1. RegID: " & LastSubmit.RegID & "
    2.  City: & LastSubmit.City & "
    3. Country: " & LastSubmit.Country)

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @cwebb365 ,

    I want to pull out data from share point list not Edit form so query I apply

    RegID:

  • cwebb365 Profile Picture
    3,294 Most Valuable Professional on at

    huh? That is pulling it from your last submit, has nothing to do with the edit form. I was just pointing out the formatting to concatenate the string with dynamic values in the email body. 

  • Verified answer
    cwebb365 Profile Picture
    3,294 Most Valuable Professional on at

    So RegID: comes from the form item you submitted or somewhere else in the app? If some other data source, you need to utilize Lookup to get the value. Something like below. Last submit is just assuming a value based on something on the form. 

    1. City: " & Lookup(Datasource,id = LastSubmit.Regid).City & " 

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @cwebb365  

     

    Thank you so 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

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!

Leaderboard > Power Apps

#1
Haque Profile Picture

Haque 70

#2
WarrenBelz Profile Picture

WarrenBelz 64 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 36 Super User 2026 Season 1

Last 30 days Overall leaderboard