Scoped applications and missing api's

Jacob_Andersen
ServiceNow Employee
ServiceNow Employee

Many thanks to those who found the replacement for XMLDocument and GlideXMLDocument in Fuji for scoped apps (XMLDocument2).   Does anyone know if there are replacements for the following?

new GlideHTTPRequest()

new GlideEncrypter()

gs.setProperty()

When you have a scoped application, your scripts are prohibited from making certain calls to the application.   While I see the benefit to that idea, it seems like some very important api's may have been left out.  

1 ACCEPTED SOLUTION

saurabh_khetan
ServiceNow Employee
ServiceNow Employee

Hi Matt,



From Fuji Patch2 and above platform is supporting decrypting value within scoped application. Please use the below to get your password field decrypted value. Please remember that this is allowed only when the record is within the scope of your application


gr.<element>.getDecryptedValue()



Saurabh


View solution in original post

10 REPLIES 10

Mwatkins
ServiceNow Employee
ServiceNow Employee

I want to mention that the usage of GlideSystem property setter API is a potentially dangerous API and is currently not documented in the Wiki for good reason. The API is dangerous because   it will cause a system-wide cache update that will cause temporary performance degradation. If the method call is done frequently then this will lead to a situation where the cache is constantly being flushed and thus a state of permanently degraded performance. It is recommended to use a different table for all cases where a setting must be changed frequently. Properties should only be used for things that don't change very often - at most something that might need to be changed once a week.