The WorkFlowCancel function is utilized to cancel a workflow and stops the ongoing flow.
Syntax
WorkFlowCancel(Comments, AlertUser)
Argument Count: 2
Description
The WorkFlowCancel function is used to cancel an ongoing workflow. It requires two arguments: Comments and AlertUser.
Arguments
Comments
Type: string
Is Optional: yes
Description: This argument provides comments or reasons for canceling the workflow. The input should be a string detailing why the workflow is being canceled.
AlertUser
Type: bool
Is Optional: yes
Description: This argument determines whether the user should receive an email notification upon the execution of this rule. If set to true, the specified user will be alerted via email.
Example
WorkFlowCancel(“Cancel”, true)
This function will cancel the workflow with the comments “Cancel” and send an email notification to the user.