Interested in a ServiceNow event built for developers? Registration for now[dev]26 is officially open!

Help with System properties.

Abhijit Das7
Tera Expert

Hi Team, 

 

I have a system properties in Custom scope A. And there is scripted rest API in Custom scope B. I am trying to update the system property but, unable to update it. 

Error 
1. 

Message
Access to api 'put(sys_properties.value)' from scope 'custom_scope_name' has been refused due to the api's cross-scope access policy.
2. Write operation against 'sys_properties' from scope 'custom_scope_name' has been refused due to the table's cross-scope access policy
Any idea, how can I solve this issue.

Thanks in advance
5 REPLIES 5

yes ! for this basically the flow will be,

Scripted REST API (Scope B) → Main Script Include (Scope B) → Calls helper Script Include (Scope A) → Updates property.

Alternatively you can prefer the approach given by @Nilesh Pol , the best ootb approach recommended.