Create a task every beginning of the month

Diana Yazmin
Tera Contributor

Hello experts

 

Is it possible that a Task can be triggered within a workflow according to some established date?

 

Thank you for support

Regards

2 REPLIES 2

Danish Bhairag2
Tera Sage
Tera Sage

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

Vishal Birajdar
Giga Sage

Hi @Diana Yazmin 

 

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",'','','');

 

 

Vishal Birajdar
ServiceNow Developer

I know one thing, and that is that I know nothing.
- Socrates