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

The system properties table itself prevents the cross-scope write operation. You would have to change the application - all scopes - write option on the table to directly get around this. To indirectly get around this, you can in your Test application make a 'setProperty' api available to other scopes. 

 

Regards,

Sachin

Thanks, I read that in another post and I tried the second option (first one isn't possible in my case)... It didn't work.
I wonder if I'm missing something.. the script include is already available from all application scopes and has a method I'm calling to set the property.

Hi Drct,

Just to make sure I am following the thread..Are you trying to update a system property (**Created in a different scope) from a global scope. Please confirm.

 

- Pradeep Sharma

Hello Pradeep,
Yes, that's correct. I tried setting it through a script include inside the scoped app (called via GlideAjax). It only works when calling it from the same scope (not with Global scope).
Thanks

I just tried via background script (global scope ) and it worked without any issues i.e using gs.setProperty