How can I reference data in a global scope table from an application in a specific application scope?

shigehisa
Kilo Contributor

How can I reference data in a global scope table from an application in a specific application scope?
Specifically, I am trying to refer to the data of the globe table by GlideRecord on the server side using Script Include, but I cannot refer to it. I think it's probably a permission issue, but I don't know exactly where and what to set it to work.

6 REPLIES 6

Hi

Your script just returns ONE "random" Record from your table.

Please check, if the "name" field is filled in for ALL Records, otherwise you will get no value.

Also, try to return

"return rec.getValue('name');"

or

"return rec.getDisplayValue('name');"

Let me know if that works.

BR

Dirk

Megha Padale
Giga Guru

Hi,

The Application access fields determine whether a table is accessible to other applications during design-time or run-time operations.

Refer below docs links

https://docs.servicenow.com/bundle/orlando-application-development/page/build/applications/reference...

https://docs.servicenow.com/bundle/orlando-application-development/page/build/applications/task/set-...

If my answer helped you in any way, mark answer as helpful and correct.

Thanks and regards,

Megha.