Workflow to trigger tasks based on time schedule
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-16-2022 02:30 PM
How would I set up in a workflow that a task should be triggered in specific times? like every 2nd Monday of every month?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-16-2022 07:52 PM
You can simply setup a flow in flow designer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-16-2022 08:22 PM - edited ‎10-16-2022 09:51 PM
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. 🙂
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-16-2022 10:58 PM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-16-2022 11:33 PM
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.
