Background Script IN SCOPE Dropdown Options

Ya_Ga
Tera Expert

Hi,

In Background-Scripts, I am looking to add my custom applications in the dropdown list of "IN SCOPE". Right now it only has Global scope as the available option. 

 

Yaswanth_G_0-1722981580803.png

 

Any guidance/steps to overcome this requirement is greatly appreciated.

 

Thanks!

2 REPLIES 2

Bhavya11
Kilo Patron

Hi @Ya_Ga ,

 

Only the applications that are developed on that instance will have their scopes visible/accessible in the background script.

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0863463

And the reason is explained here:

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0751600

 

For reference :

https://www.servicenow.com/community/developer-forum/how-to-install-xplore-tool/m-p/2116856#M773782

 

 

If my response proves useful, please indicate its helpfulness by selecting "Accept as Solution" and " Helpful.

 

Thanks,

BK

SN_Learn
Kilo Patron
Kilo Patron

Hi @Ya_Ga ,

 

Check the below thread which explains the reason of it:

Background Script - not all scopes available. 

Is there a way to run Background Scripts in the Scope of an installed application 

Admin users unable to select few applications from Scope selector in background scripts 

Installed Scoped Applications from a Repository does not appear in Scope drop down under 'Scripts - ... 

 

Workaround suggested in the above threads:

 

(a) Run Fix Script instead of background script on the required scope OR Use Xplore to run fix script

Download: Xplore: Developer Toolkit 

Implementation Steps: Install Xplore tool 

 

----------------------------------------------------------------
Mark this as Helpful / Accept the Solution if this helps.