Hi,
I'm new to powerapps and I'm designing a leave request form and a flow based on a Sharepoint list.
I desgined the form by clicking PowerApps->Customize forms
Below are the requirements
1. Save the form data to SP list when the user clicks the "Save" button and update the Sharepoint List Column "Status" to "Draft"
2. Save the form data to SP list when the user clicks the "Submit" button and update the Sharepoint List Column "Status" to "Submitted"
3. Update the Sharepoint List Column "Status" to "Cancelled" when the user clicks the "Cancel" button.
The user may save the form data first and later come and submit it for approval.
I tried the patch function for the Cancel button, but it gives an error

Could someone help me on how to achieve the above three requriements.
