Run a workflow daily or a scheduled job

riaz_mansuri
Kilo Guru

Hello,

I have created a workflow with the below condition (on a bespoke table)

find_real_file.png

This then creates and Incident using the Run Script function. It all works fine.

However, the workflow runs when the record is inserted (as it should).

I would like this workflow to run daily on this table.

I don't know if this is the best way to do this but what I am trying to achieve is an Incident to be created based on the date field.

You help is appreciated.

Thanks,

Riaz

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

Hi Riaz,



You can check the option of Schedule workflows.


http://wiki.servicenow.com/index.php?title=Scheduling_a_Workflow#gsc.tab=0



Mark Correct if this solves your issue and also hit Like and Helpful if you find my response worthy based on the impact.


Thanks


Ankur


Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

View solution in original post

5 REPLIES 5

Ankur Bawiskar
Tera Patron
Tera Patron

Hi Riaz,



You can check the option of Schedule workflows.


http://wiki.servicenow.com/index.php?title=Scheduling_a_Workflow#gsc.tab=0



Mark Correct if this solves your issue and also hit Like and Helpful if you find my response worthy based on the impact.


Thanks


Ankur


Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Ok Thanks this is great - however the second thing is that if an Incident has been generated already it should not run that workflow again and generate another Incident.



Any ideas?



Thanks,


Riaz


Hi Riaz,



you will have to handle that in the workflow after begin activity. if you want the further activities to trigger have if condition.


if you don't want further activities to trigger directly end the workflow.



Regards


Ankur


Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Hi Riaz,



Any update on this. Can you mark my answer as correct and hit like. This helps in removing this question from unanswered list.


Thanks in advance.



Regards


Ankur


Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader