- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-13-2023 06:12 AM
We have a field of type reference on the table of a scoped app. We'd like to set a default value for new records and use a system property in order to avoid hard coding the default value as the default is effectively pointing to a data record.
When we attempt to use getProperty on the default attribute in the dictionary, it gives the following error:
Some ServiceNow scoped applications use gs.getProperty to populate default values so it's not clear why it's not working here. Any ideas?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-13-2023 06:53 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-13-2023 06:16 AM
if you run the same thing in a background script, can you print the property?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-13-2023 06:40 AM
Yes - background script reads the property ok
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-13-2023 06:44 AM
Looks like the cross scope privilege was inserted now, see fi the default things works now?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-13-2023 06:49 AM
Yes, issue is still there. The form for the dictionary entry gives an error when I try to use the javascript gs.getProperty call to set the default value.