How to Iterate a Function in Zoho Desk Workflow with Delay Between Calls?

How to Iterate a Function in Zoho Desk Workflow with Delay Between Calls?

Hi everyone,

I’m working on a function in Zoho Desk that searches for a specific ticket record. If the ticket is not found, I need to retry the search multiple times with a delay between each attempt until the ticket is located or a maximum number of attempts is reached.

However, since Deluge lacks while loops, recursion, or a direct way to implement delays within a Desk workflow, I’m unsure how to proceed. I’d prefer to avoid using external tools like Zoho Flow or webhooks to external systems. My goal is to achieve this entirely within Zoho Desk's workflow capabilities.

Key Requirements:

  1. Search for a ticket in Zoho Desk.
  2. Retry multiple times if the ticket is not found.
  3. Include a delay (e.g., 2 minutes) between each attempt.
  4. Implement this entirely within a Desk workflow.

Has anyone managed to implement something similar? Any ideas, workarounds, or best practices to achieve this?

Thanks in advance for your help!

Best regards,
Ram