GlideTransaction is not allowed in scoped app?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-16-2017 08:59 AM
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?
- Labels:
-
Scoped App Development
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-25-2020 07:03 AM
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.