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 approval email an...
Power Apps
Unanswered

Send approval email and add items to SharePoint list

(0) ShareShare
ReportReport
Posted on by 64

I'm trying to send an approval email with user information, so I can accept or reject a new user.

I have set a button (OnSelect property) to patch user information to a SharePoint list, and also send an email by using following code. The email is sent and the informations added to SP list when I push the button, but I don't know how to set the options (on the buttons which appear inside the email) to change the status in SharePoint. 

Office365Outlook.SendMailWithOptions(
"https://www.google.com",
{
To: LookUp('UsersList', UserType = 2, Email),
Subject: "ACCESS REQUEST",
HeaderText:"",
SelectionText:"Select one option to approve or reject the access request.",
Options: "APPROVE, REJECT",
Importance:"Low",
Attachments:Blank(),
UseOnlyHTMLMessage:true,
HideHTMLMessage:true,
ShowHTMLConfirmationDialog:false,
Body:
"<b> User Name: </b>" & varUserName
& "<p> </p>" &
"<b> Job Title: </b>" & varJobTitle
& "<p> </p>" &
"<b> Email: </b>" & varEmail
& "<p> </p>" &
"<b> User Type: </b>" & varUserType
& "<p> </p>" &
"<b> Date: </b>" & varDate
& "<p> </p>" &
"<b> Manager: </b>" & varManager
}
)

 I have seen that Office365Outlook.SendMailWithOptions probably doesn't work. So, is there a way to do that using Power Automate?

I don't how to set the "To:" option in Power Automate the same way I'm doing here, with a dynamic list which can contain more than one approver email:

To: LookUp('UsersList', UserType = 2, Email)

 

Categories:
  • StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at

    Hi @gasilva8 

     

    Power Automate is the right option to send an Approval email so that we can validate the response. Since Approval will happen independently.

     

    When you send an email from PowerApps, the app can't wait for it.

     

    Sample flow

    StalinPonnusamy_0-1636777420065.png

     

    Please let me know if any help with Power Automate approval.

     


    Thanks,
    Stalin - Learn To Illuminate

     

  • StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at

    Hi @gasilva8 


    Please let us know if anything needs on your post. We can help with this.

    Please mark the post as Solved If I have answered your question.
    Please give it a Thumbs Up if you find the suggestion helpful

    Thanks,
    Stalin - Learn To Illuminate

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

#2
M Bilal Khan Profile Picture

M Bilal Khan 325

#3
Mohsin Ali Profile Picture

Mohsin Ali 232

Last 30 days Overall leaderboard