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 / Help to send Email wit...
Power Apps
Unanswered

Help to send Email with Approve or Reject Button with patched content

(1) ShareShare
ReportReport
Posted on by 16

Hi I have a set of fields in power apps that are sent to a SP list onselect and I am wanting a way to send these through my 365outlook connector to the manager of the person logged in via email with a Approve or Reject button visible in the email and have a way to update SP with the Approve or Reject status i have a field in the SP list called Status

 

Patch(
'Authorise to recruit' ,
Defaults('Authorise to recruit'),
{
REQAuthoriser: txtAuthoriser.Text,
PersonTest: CBPersonTest.Selected,
SiteAreaDepartment: txtSiteAreaDepartment.Text,
LineManager: txtLineManager.Text,
Salary: Value(txtSalary.Text),
LeaveDate: DtLeaveDate.SelectedDate,
ContractType: DDContractType.SelectedText,
ContractEndDate: DtContractenddate.SelectedDate,
LeaverName: txtLeaverName.Text,
JobTitle: txtJobTitle.Text,
JustificationforPost: DDJustificationforPost.SelectedText

}
)

 

 

Is anyone able to help me please?  

Categories:
I have the same question (0)
  • poweractivate Profile Picture
    11,078 Most Valuable Professional on at

    @BMDoubleBlue 

    You may want to use Power Automate and the start and wait for an approval action block.
    To execute it from Power Apps Canvas App, use the PowerApps or PowerApps (V2) trigger

    poweractivate_3-1691771725709.png

     

    (the primary difference is how you add parameters - with V2 you use the Add an Iiput at the top in the trigger block itself to add parameters - with the version 1, you have to click on Ask in PowerApps from the Dynamic Content each time). poweractivate_0-1691771508973.png

    If you need to do advanced management of the approval where starting and waiting for approval in same action block is holding you back, then you may instead use the individual Flow blocks create an approval and wait for an approval

     

    create an approval:

    poweractivate_1-1691771601109.png

     

    wait for an approval

    poweractivate_2-1691771644689.png

     

    PowerApps or PowerApps(V2) trigger can be added to Canvas App and you access it by NameOfFlow.Run(your arguments here matching the order and the type of the parameters declared in the Cloud Flow)

    To ensure the Canvas App waits for the Run function to finish before moving to the next line in your formula in case you have another line(s) after the Run function, you must have at least one of these Respond to a PowerApp or flow blocks present in the Flow (whether you use the actual returned value or not, and whether or not all possible paths in the Flow necessarily even reach this block)

    poweractivate_4-1691771810432.png

    To make sure the Run function does not wait for the Run function to actually complete the Flow, then make sure to there are NO blocks of

    Respond to a PowerApp or Flow

    in that Flow.

     

    The decision as to whether the Canvas App waits, or does not wait, on the Run function line of the Flow, for it to actually finish, depends on whether there is at least one Respond to a PowerApp or Flow in the Flow.

    If there is at least one, the Canvas App should wait for the Flow to actually complete on the Run function call in your Canvas App before moving on to the next line(s) in your Canvas App formulas that come after the Run.

    If there is no Respond to a PowerApp or Flow in the Flow, then Canvas App should not wait for the Run to finish, instead the Canvas App just fires the Flow to run, and then the Canvas App continues on to the next formula line(s) in your flow after the Run.

    See if it helps @BMDoubleBlue 

  • BMDoubleBlue Profile Picture
    16 on at

    Thanks for taking the time to reply. I'm not wanting to use Power Automate for this but I have found some tutorials for what i need to achieve through power apps. Thanks again

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

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 342 Most Valuable Professional

#2
11manish Profile Picture

11manish 234

#3
Valantis Profile Picture

Valantis 187

Last 30 days Overall leaderboard