Sync contract stage from Zendesk to callable workflow
Recipe ToolsCustomer ServiceDeveloper Tool
What it does
When someone calls this automation, it retrieves ticket details from Zendesk and evaluates the contract stage. It processes the contract lifecycle data and returns the updated stage based on approval status.
Who it's for
Legal teams who need to track contract stages across systems without manual updates.
How teams use this
Advance contract through approval stages
When approval status changes in Zendesk, this automation evaluates the current stage and moves it forward in the contract lifecycle. The ticket remains the source of truth for all stage transitions.
Prevent contracts from running initiation twice
Check the contract stage before allowing the initiation step to run again. If the stage is already past initiation, the automation skips that step and moves to the next phase.
Add custom stage validation rules
Extend the Ruby code to include additional conditions that validate whether a stage transition is allowed based on ticket fields. Only permit forward movement when all required approvals are present.
How it works
- Receive the callable request. Listen for a new call to this automation with contract and ticket information passed in from another workflow or system.
- Fetch the ticket from Zendesk. Retrieve the full ticket details including all custom fields and metadata needed to determine the current contract stage.
- Transform contract lifecycle into a list. Run Ruby code to convert the contract lifecycle data into an array so each stage can be evaluated and processed individually.
- Return the updated contract stage. Send the new stage value back to the calling workflow so downstream systems receive the current contract state.