- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2020 02:04 PM
Hello,
Is there a way to set a scoped system property from the Global scope (using gs.getProperty)?
I already tried setting it through a scoped API call.
Error: Not allowing update of property: x_scope_mine.my_property_123.
Thanks!
Solved! Go to Solution.
- Labels:
-
Scoped App Development

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2020 05:46 PM
Thanks for the update Drc1234.
Let me know if that answered your question. If so, please mark my response as correct so that others with the same question in the future can find it quickly and that it gets removed from the Unanswered list.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2020 04:50 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2020 05:06 PM
use below code
setProp: function() {
var value = this.getParameter('sysparm_value_1');
var str = value.toString();
gs.setProperty('some_prop', str);
}

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2020 05:07 PM
Thanks for the update. I have just tested and it works fine.
setProp: function() {
gs.setProperty('some_prop', 'test');
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2020 05:18 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2020 05:25 PM
For testing purposes can you replace with below code. Please make sure to update suffix name in the code before you save it.
setProp: function() {
var value = this.getParameter('sysparm_value_1');
var propGr = new GlideRecord('sys_properties');
propGr.addQuery('suffix', "PASS PROPERTY SUFFIX NAME HERE');
propGr.query();
if(propGr.next())
{
propGr.value = this.getParameter('sysparm_value_1');
propGr.setWorkflow(false);
propGr.update();
}
}