Scoped Application: Run a script upon install

paulwoolcock
Kilo Contributor

I am currently developing a scoped application for Geneva and Helsinki, and was wondering if there is a way to have some logic run automatically as soon as the app is installed. Specifically, I am looking to enable/disable certain parts of the application depending on what environment the application has been installed into.

1 ACCEPTED SOLUTION

Pradeep Sharma
ServiceNow Employee
ServiceNow Employee

Hi Paul,



You can create a fix script and package it as part of your scoped application. Fix script will be executed when app is installed/upgraded.


Please let me know if you have any questions.



Reference :


Fix Scripts - ServiceNow Wiki


View solution in original post

4 REPLIES 4

Pradeep Sharma
ServiceNow Employee
ServiceNow Employee

Hi Paul,



You can create a fix script and package it as part of your scoped application. Fix script will be executed when app is installed/upgraded.


Please let me know if you have any questions.



Reference :


Fix Scripts - ServiceNow Wiki


Nailed it, I was wondering about how to solve a problem I was facing, and this will do it.  Thank you for sharing.

paulwoolcock
Kilo Contributor

Thanks Pradeep, that is exactly what I was looking for. Cheers!


Thanks Paul for the update.



Let me know if that answered your question. If so, please mark my response as correct so that others with the same question in the future can find it quickly and that it gets removed from the Unanswered list. Thank you