Tony28
Giga Contributor

I decided to open a case with ServiceNow to get a direct answer. Unfortunately, according to them, there is no way to change scope within a script.

 

They suggested using script includes in different scopes and then calling them from within the fix script, but that doesn't exactly fit my need for what I'm trying to do. Maybe I'll try suggesting it for a future release!

 

Hopefully this provides some closure to some people who were searching like me.

View solution in original post