Skip to main content

Notifications

Community site session details

Community site session details

Session Id : w6Oo3QQVCLfhonPmgy++KX
Power Apps - Building Power Apps
Unanswered

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

Like (1) ShareShare
ReportReport
Posted on 11 Aug 2023 14:57:05 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?  

  • BMDoubleBlue Profile Picture
    16 on 14 Aug 2023 at 12:56:56
    Re: Help to send Email with Approve or Reject Button with patched content

    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

  • poweractivate Profile Picture
    11,078 Most Valuable Professional on 11 Aug 2023 at 16:41:10
    Re: Help to send Email with Approve or Reject Button with patched content

    @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 

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,651 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,999 Most Valuable Professional

Leaderboard
Loading started