Record watchers in server scripts?

Harshit Sharma1
ServiceNow Employee
ServiceNow Employee

Hey folks,

Is there a way to use record watcher in server side scripts. I want to be able to monitor the records that get generated as a result of multiple async calls. Once all async calls are finished, I want to wait till all records have been generated and then do further processing on all these records.

1 REPLY 1

James Schwab
Tera Guru

Hi Har**bleep**, 

Record watches within server side script do not exist, however, you may be able to achieve what you are looking for with a Scheduled Script Execution. 

You will need to think about what is your "trigger", how will the script know that all the records are done? - You can then use that as the condition in your Scheduled Script and run the desired code.

If you are looking for more specific advice, feel free to share an example of your async calls.