The CreatorCon Call for Content is officially open! Get started here.

Alert box on background script

niitnishant
Tera Contributor

Hi Friends,

When a user clicks on the 'Run Script' button on the background script form, i need an alert saying "you are running a BG script in production. Are you sure you want to continue?"

Anybody has experience on it?

Thanks,

Nishant

6 REPLIES 6

niitnishant
Tera Contributor

We need this keeping in mind the potential risk around this. I would probably do a modal popup to write "execute" and then allow script to execute. Same way as we have to write 'delete' before removing/deleting any table from instance (just in case).


Ankur Bawiskar
Tera Patron
Tera Patron

Hi Nishant,



This is not possible.


If you have admin rights then you need to check what impact the script would have if it ran and after checking that only you should proceed ahead.



Regards


Ankur


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