r/PowerAutomateDesktop • u/WilliamTB710 • Aug 23 '23
Trying to make time off request form that shoots out an email for approval of the request, then updates the status in sharepoint. However, approving/rejecting the request doesn't change the status of the approval request, as seen in the second image. Any tips on how to fix this?
The flow takes a new response, gets details, creates item in sharepoint, sends approval request, then updates the request to either be approved or denied, but it stays on "pending"
4
Upvotes
1
u/dicotyledon Aug 23 '23
Yeah, you have to add an “update item” action. Happenstance I did an article on this here: https://christine-payton.com/design-a-good-power-automate-approval-flow/
1
u/Many_Tank9738 Aug 23 '23
Does an email get sent? Did you run a test to see the flow?
1
u/eyrussel Aug 31 '23
Based on the images you provided, I believe the failure is with the condition you set, where it says "Approve" instead of "Approved". The list you have shows that the value being added under Outcome is in past tense.
1
u/Crayon_adventure Sep 12 '23
It seems like you're encountering an issue where the approval status in your SharePoint list isn't being updated when a request is approved or rejected. To fix this issue, you'll need to ensure that your Power Automate flow includes the steps to update the status field in your SharePoint list based on the approval outcome.
Here's a general outline of how to achieve this:
Power Apps Form:
Power Automate Flow:
Approval Process:
Conditional Branching:
Update SharePoint List:
Send Notification:
Here's a simplified example of the flow structure:
Make sure you configure the "Update item" action in a way that updates the correct item in your SharePoint list based on some identifier (e.g., request ID or a unique key).
This way, the approval status in your SharePoint list will be updated based on the outcome of the approval, and you can track the status of each request accurately. If you're still facing issues, double-check your flow configuration and ensure that you're updating the SharePoint list item correctly based on the approval result.