Workflow to trigger tasks based on time schedule

Wasd123
Tera Expert

How would I set up in a workflow that a task should be triggered in specific times? like every 2nd Monday of every month?

6 REPLIES 6

Mike_R
Kilo Patron
Kilo Patron

You can simply setup a flow in flow designer

H_9
Giga Guru

Hello,

 

You can create a simple workflow that will just create a task.

Now as you want to schedule it to specific time, what you can do is create a scheduled job that will run on every 2nd Monday of every month.

 

 

 

var flow = new Workflow();
flow .startFlow(flow.getWorkflowFromName('mention the workflow name'), gr, 'insert');

 

 

 

Please mark the answer correct if it helps. 🙂

Thanks. 🙂

The workflow has several tasks, and only one of the tasks should be scheduled like that? so not like the whole workflow should be triggered at that point.

okay, I dont think is is possible to achieve because you cant use the "wait for condition" activity as well as it waits till something is changed on the current record.

This task creation you will have to handle separately. 

 

You can create a scheduled job that will run weekly on 2and day of the week.

Then in script part you can check if the Monday is 2nd Monday.

Then from the script trigger an event, say "abc".

 

Create a script action and select the event name as "abc", so this script action will run whenever the event "abc" is triggered.

Then in script action write a code to create this task.

Thanks. 🙂