
Announcements
I am wondering when a user clicks cancel request on an Approvals request and if my logic condition in Flow was when approver approves do this branch versus the other branch, upon cancelling which per my Approvals only is programmed for Approve or Reject shouldnt the flow move to Reject branch?
I am observing the flow and it shows that it hasn't moved to the rejected side. Any ideas? At this point, i dont want the Cancel request option as well for the receiver of the task.
Unfortunately, when the request is canceled, this is not returned as part of the approval response. This is what I do by using a switch:
The switch will have a value for each of your outcomes (in case you're not using the default Approve, Reject options). The default will handle when a request is cancelled.
The Get row by ID from the Dataverse table will get the row associated with the approval based on the Approval ID. You will then set a condition to see if the Status Reason equals 192350006. I figured this out from a combination of asking Copilot and searching the web. This status code is when an approval is cancelled.
You can then do what you want on the yes/no sides of the condition. For me, I update the request with information that it has been cancelled and then send an e-mail to the requester that it has been cancelled. On the no side, I send myself an e-mail telling me to check the workflow since this would indicate an issue as some other outcome came through the approval that is not expected.