Function autoSysFields is not allowed in scoped application?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-27-2015 01:33 PM
Using SNOW Fuji. I've got a scoped application with a private script include. From my script include, I've got the following code:
var journalField = new GlideRecord('sys_journal_field');
journalField.initialize();
journalField.name = 'x_atrm_atroam_session';
journalField.element = 'body';
journalField.element_id = session.sys_id;
journalField.value = chatMessage;
journalField.insert();
This is giving the following error: "Create operation against 'sys_journal_field' from scope 'x_atrm_atroam' has been refused due to the table's cross-scope access policy"
Prior to Fuji and scoped applications, this was possible. What is the proper way to add a journal field as of the Fuji release?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-29-2016 08:45 AM
Hi Prashant,
I used this approach today and it worked, however the edit to sys_journal_field did not get captured in my scoped app update set. Any suggestions?
Thanks!
- Matt

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-13-2016 08:26 PM
There is no way to get it in your update set as it is not in your scope.
The only thing you can do is to tell the customer to manually perform this step after installing the application.
You could provide an XML file that changes this configuration for the customer, or even link them to a share app (basically an update set) that does this.
This is the approach I have to take for one my features.
ServiceNow Nerd
ServiceNow Developer MVP 2020-2022
ServiceNow Community MVP 2019-2022