- 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:53 AM
Try to check use Dynamic Default
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-13-2023 07:31 AM
Brilliant - a dynamic filter works - thank you. 🙂
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-13-2023 07:32 AM
Ha, I'm so glad I could help. Cheers !!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-13-2023 06:31 AM
Hi,
If you want to add a Dynamic Default value you have to create a dynamic filter option like in the following
Regards,