Background Script - Customer/Instance Scripts element

Pierre C
Tera Contributor

Hello everyone,

 

On the Scripts - Background page, at the bottom there is an element which says "customer" and "No scripts" (if you are pre-Washington) and "Instance Scripts" (since Washington), and I'd like to know what does it represents, and how to use it (if we can).

 

I'm pretty sure I saw a list of scripts on this page on a customer instance in my past life, but for the life of me I can't remember how to get to save scripts that show here, does someone know how to use it?

 

I'm pretty sure @Chuck Tomasi would know this, if he ever were to pass by I'd be glad to get help from the legend himself 😁

 

Thanks in advance!

2 REPLIES 2

Juan Miguel
Tera Expert

I am also curious about how to fill that Instance Script list. 

Corey19
Tera Expert

Based on what I've been able to determine, this is no longer functional (since around Washington). Previously you could upload JS files using the Upload.do UI Macro and they would be listed below the Background scripts UI but now that macro only allows XML files. It's possible I suppose that historically uploaded Instance Scripts may still be available or perhaps SNow themselves may have a mechnism, however as the files don't align with existing security rules it's unlikely they would provide any support in getting it working again.

There are historical articles that are not quite correct in their assumptions around how data was stored also, therefore they aren't much use in determining a potential mechanism for recovering this feature (v_customer_uploads is listed in them as where the files are stored, whereas it's a virtual table and only references the actual location).

Perhaps this is something @arnoudkooi might be able to provide in a future snutils version as it's a simple DOM element with a UL within. It would just take creation of a new tab along with a local script storage mechanism, the downside of course is that each script would only be available on a per-user basis.