Execute operation on script include 'XXXX' from scope 'XXXXX' was denied because the source could not be found. Please contact the application admin.

Flavio Tiezzi
Kilo Sage

Hi everyone,

I created a script include for the instance's core application to place functions and be able to reference them as a condition in the UI Action, so that the buttons only appear when the flow designer is running. And I'm making the flow in a different application than the script include was created. In this sense, when I'm testing the flow, the following message is appearing: Execute operation on script include 'cscUtils' from scope 'XXXXX' was denied because the source could not be found. Please contact the application admin. How should I solve this problem?

 

Thanks,

 

Flavio.

1 ACCEPTED SOLUTION

sarahbionii
Tera Guru

Hi,

I tried in my PDI, I created a script include with the "Caller Access" as "Caller Tracking" and I got the same error message. So just change the "Caller Access" to "None".

 

find_real_file.png

View solution in original post

8 REPLIES 8

John Zhang1
Kilo Patron
Kilo Patron

I think you are trying to access the scoped app so your access was denied.  You need to configure restricted caller access on "Restricted caller access privilege" module.

What is restricted caller access in ServiceNow?
 
Use restricted caller access privilege settings to define cross-scope access to an application, application resource (for example, access control role, business rule, UI action, script include), event, or to allow or deny requests for access. ... A cross-scope script attempts to access an application resource or event.
 
Please follow this ServiceNow document to configure your access
 

 

If my reply is Helpful/Correct, please mark the answer as correct. 

Hello,

 

Thanks for your reply!

But if the application that contains the script include is in Caller Tracking, it's to work without needing a specific privilege, right?

 

find_real_file.png

Thanks,

 

Flavio.

Let me verify more about your requirement?

1) Both your script include and UI action are in same scope.  Is that global or scoped?

2) Your flow is in the scoped app which is different scope than both script include and UI Action, but you like the flow to access that script include, right?

 

1) Script include and UI action are in a different scope. Both are in a scoped application.

2) Flow and UI Action are in same scope. Script include is in a different scope application. And I would like the buttons to only appear when the flow is running. For that, I created this function inside the script include:

find_real_file.png

And I put it in the UI Action conditions. Thus:

find_real_file.png

 

Thanks,

Flavio