Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

GlideTransaction is not allowed in scoped app?

Deepak Ingale1
Mega Sage

We have a record producer built on table extended out of TASK in a scoped app.

When we written one BR on this extended table within a scope of the application.

Inside BR, we are trying to access variables object of current record using

1) current.variables

2) current.variable_pool

When this BR runs, an error message get displayed on the form of the record saying GlideTransaction is not allowed in scoped app.

We tried with   GlideappVariablePoolQuestionSet(); API as well, but again we are getting error message 'GlideappVariablePoolQuestionSet is not allowed inside scoped app'.

Does someone know how to handle this? Is there a way to suppress this error message.

Or is there any alternative to access variables using other API inside scoped app which does not show any error message?

1 REPLY 1

MGanon
Tera Guru

Open the system log (syslog.list) and search the "Message" for "*glidetransaction" created recent enough to capture the error. This will indicate the GlideRecord that is not allowed. Look a the default values of the record producer variables to find the variable with that default value.

I had the same issue. The https://community.servicenow.com/community?id=community_question&sys_id=c7d940fedb515b00fc5b7a9e0f961970 post was also similar and provided enough guidance to find the cause.

Please mark this response as the answer if it resolves your issue.