Create a task every beginning of the month

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2023 05:33 PM
Hello experts
Is it possible that a Task can be triggered within a workflow according to some established date?
Thank you for support
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2023 08:17 PM
Hi @Diana Yazmin ,
If it's just a task creation (assuming not dependent on any other thing) at beginning of every month I would suggest to go with scheduled job which will trigger monthly 1 on 1st day, where u can write a script to create the relevant task.
Mark my answer helpful & accepted if it helps you resolve your query.
Thanks,
Danish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2023 08:32 PM
Within workflow, you can use "wait for condition" activity & Configure the condition to wait until a specific date or until a date field and after that connect "wait for condition" node to Catalog task activity.
OR
You can use Event activity to trigger the catalog task.
Step 1 : Create Event (System policy>>Event)
Step 2 : Add Event Activity in workflow and associate event we have created in step 1
Step 3 : Add Catalog task activity after event activity
Step 4 : Create a schedule job (Which will run at 1st date of every month) & trigger that event in schedule job using
gs.eventQueue("event_name",'','','');
ServiceNow Developer
I know one thing, and that is that I know nothing.
- Socrates