Script Include does not work in Report reasonable

Florian Korbmac
Tera Contributor

I have a report that is supposed to fetch and show me certain assets from the sc_item_option_mtom table. For this I use a script include which also works in my admin context.

When I impersonate as a normal user, no content is shown to me. Only if I specify a fixed sys_id as return value, I get a value there too.

Furthermore I don't get any log entries. Can someone help me?

1 ACCEPTED SOLUTION

Tony Chatfield1
Kilo Patron

Hi, You indicate that the code functions as expected when you run it from the report?
Does your user have access to the underpinning data and have rights to run the script-include?

Have you tried enabling security debug, impersonated user, reproduced and then reviewed the debug logs.

ACL debugging tools (servicenow.com)

Apply ACLs to AJAXGlideRecord (client-side Glide record) (servicenow.com)
If you can share your code as xml or plain text, the community would be able to validate\reproduce your issue, but unfortunately a partial screenshot provides limited options for reproducing the issue.

View solution in original post

2 REPLIES 2

Tony Chatfield1
Kilo Patron

Hi, You indicate that the code functions as expected when you run it from the report?
Does your user have access to the underpinning data and have rights to run the script-include?

Have you tried enabling security debug, impersonated user, reproduced and then reviewed the debug logs.

ACL debugging tools (servicenow.com)

Apply ACLs to AJAXGlideRecord (client-side Glide record) (servicenow.com)
If you can share your code as xml or plain text, the community would be able to validate\reproduce your issue, but unfortunately a partial screenshot provides limited options for reproducing the issue.

Florian Korbmac
Tera Contributor

Thank you very much. The problem was the missing ACLs. I thought in GlideRecords, which I use in the script include, no ACLs are respected.
But I didn't know that this is different in GlideAjax.