Create Zendesk ticket from function call with error handling

Recipe ToolsCustomer ServiceProject ManagementMarketing

What it does

When someone calls this function, this automation retrieves ticket details from Zendesk and checks for errors. If a 404 error occurs, it retries once; otherwise it stops the job.

Who it's for

Customer support teams who need reliable ticket creation with built-in error recovery.

How teams use this

Handle missing ticket errors automatically

When Zendesk returns a 404 error, this automation retries the ticket lookup once before stopping. The team avoids manual intervention for transient failures.

Route fresh product recovery requests to Jira

When the product type is rocket_fresh and the recovery classification includes mpur1 or mpur3, the ticket is sent to Jira for duplicate verification. Only matching tickets proceed to the next step.

Prevent duplicate tickets from processing

The duplicate verification flow checks if a ticket already exists before creating a new one. This keeps the Zendesk and Jira records clean and avoids redundant work.

How it works

  1. Receive the function call. A function call initiates this automation in real time to process a new ticket request.
  2. Get ticket details from Zendesk. Retrieve the ticket record from Zendesk using the ticket identifier passed in the function call.
  3. Monitor for errors and retry on 404. Monitor the ticket retrieval for errors. If the error message contains 404, retry all steps once. If the error persists or differs, stop the job.
  4. Verify ticket and check for duplicates. Call the duplicate verification flow in Jira to confirm the ticket is not a duplicate and the product type and recovery classification match expected values.