Send out a survey invite every other Thursday to a participant list | Experience Community
Skip to main content
Question

Send out a survey invite every other Thursday to a participant list

  • March 13, 2026
  • 1 reply
  • 5 views

kgillis
Level 6 ●●●●●●
Forum|alt.badge.img+31

I want to send out an email invite to a survey but want it to send every other week (on Thursdays at a specified time) but am not able to figure out the every other week cadence. I can see where I set it up either weekly or monthly, but it seems there’s no in between option. Please advise

1 reply

vgayraud
QPN Level 7 ●●●●●●●
Forum|alt.badge.img+62
  • QPN Level 7 ●●●●●●●
  • March 14, 2026

Hi,

There is no way to set that up only with the native scheduling options. I think someone had a similar request for cron expressions a while ago but I can’t find it.

The way to go around this is to have a workflow firing every day (or every Thursday in your case), a code task to check if the day is a valid distribution day and a workflow condition set up to stop or continue based on the code task result.

For your use case, it would look like this:

 

Not extensively tested, but your code task should be something like this:

function codeTask() {
const startingThursday = '2026-01-01'; // Change to your actual starting Thursday

function isDistributionThursday(startDate) {
const today = new Date();

if (today.getDay() !== 4) return false;

const start = new Date(startDate);
start.setHours(0, 0, 0, 0);
const now = new Date(today);
now.setHours(0, 0, 0, 0);

const diffInMs = now - start;
const diffInDays = Math.round(diffInMs / (1000 * 60 * 60 * 24));

return diffInDays >= 0 && diffInDays % 14 === 0;
}

return {
result: isDistributionThursday(startingThursday)
};
}