Background Script Prompts?

vstefano
Giga Contributor

Is there a way that you can prompt for input on background scripts?

I've been making a few maintenance scripts for when a few issues come up and I'd like to save them for future admins to run so that they can be run from the background script screen but they require data values to be changed. For example if, there is an off chance that there are 1000+ children incidents we have business rules that run on them when the parent is updated but it needs the incident number. If the script is saved with a static value, it becomes pretty useless...

1 ACCEPTED SOLUTION

Michael Ritchie
ServiceNow Employee
ServiceNow Employee

Unfortunately this is not possible for a background script, but Record Producers are an option for you.



You can create a record producer with a variable to prompt for the incident number and then the record producer script can take that variable input and run the script.



Please mark this post helpful or correct if applicable.


View solution in original post

5 REPLIES 5

Great idea! The record producer will also create a record in the table you specify in it, so the fact of script execution can be automatically recorded in the form of an incident or a change request.