Access scoped system property from global scope.

Drct1234
Mega Expert

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!

1 ACCEPTED SOLUTION

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.

View solution in original post

19 REPLIES 19

sachin_namjoshi
Kilo Patron
Kilo Patron

add the scope name in front of the system property. So if your sys_property is like "glide.ui.show_live_feed_activity"

Call it like:

"x_scope123.glide.ui.show_live_feed_activity"

(where x_scope123 obviously would be your scope name)

 

Regards,

Sachin

Thanks Sachin, but I already tried that, the error I get is:
Not allowing update of property: x_scope_mine.my_property_123. I already allowed the role to read and update it.

Have you tried updating property name using background script and elevate yourself as security_Admin before running background script?

This should work.

 

Regards,

Sachin

 

 

The problem is I need to update it after a user clicks a UI action, the logic is in a script include. It doesn't work (even for admin) when I'm in a different scope, on the same app scope it does work.