set-expiration trigger action
set-expiration trigger action
The Set Expiration trigger action is used to add or update the due date for a workflow state.
The expiration is set for the workflow state specified in the workflow trigger condition. If no condition is set, the expiration is set for the workflow state when the event occurs.
Set Expiration action parameters
Action Parameter | Value | Notes |
---|---|---|
Due Date MANDATORY | Duration period or fixed date and time
| A value must be added for the Due Date. The Set Expiration trigger action overrides any existing expiration for the state. *In some cloud instances, a fixed due date must initially be added using the code editor. It is then displayed as an editable date value in the visual editor.
|
When the workflow trigger event occurs, the trigger checks that any required conditions are met, and if met, the "set-expiration"
action sets a new expiration date. The due date can be a period of time or a specific date and time.
Adding a fixed due date
In some Cloud instances, you can only use the code editor to set the due date to a specific date and time.
Once added, you can switch to the visual editor to amend the fixed date.
When you change the Due Date to a duration period in the visual editor, the Fixed Date option is removed. You must then add a new Fixed Date value using the code editor.
“set-expiration” JSON code
A Set Expiration workflow trigger action added using the visual editor is automatically displayed in the workflow code editor as a “set-expiration”
trigger action.
You can also use the code editor to add the workflow trigger and the “set-expiration”
action.
An existing state expiration can be removed using the Clear Expiration trigger action.