Workflow : Put a timer in a JS task | XM Community
Skip to main content

I have a workflow based on a new answer:
- 1. add the respondent to the XM directory
- 2. send him an email
I noticed that the email was leaving too quickly compared to the first task. And unfortunately it has to leave when the registration in the repertoire is complete. I can set a delay in sending the email, but a minimum of 1 hour when I only need a minute. Is it possible to schedule a task that slows down before the email is sent? I was thinking of a JS task.
Thank you

You can try out code tasks where you can set a buffer. But based on my experience, the tasks run in parallel because of which I am not sure whether code task would be a feasible solution or not.


Indeed, I have the impression that the workflows do not respect any order and all launch in parallel. Do you confirm ?


This is an example available on Qualtrics page where they have setup conditions in between each task to make sure that each task process one after another:

In this example, we are using a workflow to enter survey respondents into a raffle and then email raffle winners. Entrants are automatically identified when taking the survey, and we only want winners to receive an email.

  1. a workflow with conditions between tasksThe workflow begins when a respondent submits a survey response.

  2. We add an initial condition to determine raffle eligibility. This happens when the respondent takes the survey, and is specified by the embedded data field “RaffleEntry” is “True”.

  3. Next we add a code task, which uses JavaScript to randomly determine if the respondent won or lost the raffle.

  4. We add another condition to determine if we need to send an email to a raffle winner. This condition is dependent on the output from the code task.

  5. We add an email task to send an email to the respondent.



Workflows Basic Overview
You can try that out in order to achieve what you're looking for


Leave a Reply