How to send Parameter to scheduled Job?

IamAmolB
Tera Guru

Hi Experts,

I have a query, suppose i want to send some parameter to the scheduled job. can i send that and if it is possible how can we do that?
i requirement it satisfying with the on-demand Scheduled Job but i need to forward reference of one object with the same how can we do that?

Regards,

Amol Bavaskar

1 ACCEPTED SOLUTION

Script actions are the way to go.



1. Create an event.


2. Create Script Action attached to the event.


3. Fire the event from the UI Action with the required parameters.



Thanks


Srinivas


View solution in original post

8 REPLIES 8

Script actions are the way to go.



1. Create an event.


2. Create Script Action attached to the event.


3. Fire the event from the UI Action with the required parameters.



Thanks


Srinivas


paramveer
Mega Guru

if you want from UI policy then run async ajax call to script include. Also you can use action scripts. Action scripts run by events, you can just fire the event and also sent the parameter in event.


Visit below link, it will resolve your problem



Script Actions - ServiceNow Wiki



Please mark correct/helpful if it resolve your issue.



Thanks,


Param


correct Answer Let me try this
thank you again param for your help


IamAmolB
Tera Guru

Hi Param,



Can I put a condition in BusinessRule like "action=delete_project";



do it will work or is there any way to do like ths?s?@paramveer