Background Script - not all scopes available. How to add?

Zod
Giga Guru

Hi there,

when running a background script, not all of our scoped are available.

find_real_file.png

Strange is, that they are there in DEV - but not in TEST or PROD Instance.

I assume some cross scope records missing, but which one? Or is this scope depending and need to be added there?

 

10 REPLIES 10

Zod
Giga Guru

Still open question. Please advise how to add scope to list of available scopes

Kiran_45
Giga Guru

Did you get the answer for your question caught up with same situation..!

Never ;-/

Still struggling with this **bleep**. 

Assuming this has something to do how the application hat been pushed towards next instance ... als all of them are available in DEV ... .

Please add a response here if you find out. 

Rajiv Handa
ServiceNow Employee

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

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

And the reason is explained here:
https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0751600

Imre1
Tera Contributor

I managed to solve this problem by using the Xplore. It is still not a solution for adding or viewing scopes in Background script, but most probably will provide a usable solution to run scripts in the desired scope.
This is something that you have to add to your instance.

 

This source seems to me correct:

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

 

Once you added it to your instance you can open it and you will most probably be able to select the scope you wish and run your script.