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

Hi Jacob,



Please refer for Package new GlideEncrypter()


Decrypting a value to set as password not working



Thanks,


Pavan


pavan_poul
Kilo Expert

Hi Jacob,



PRB625222: api additions for scoped applications


gs.base64Encode


gs.base64Decode


This api will be in fuji next release.


gs.setProperty(): not allowed; admin must configure properties. Use another table to read/write a custom app's properties


new GlideHTTPRequest(): use RestMessageV2/SOAPMessageV2




Thanks,


Pavna


matthallbomgar
Kilo Explorer

Jacob's question still hasn't been answered.



The scoped applications are great so far, but we'd love to have a solution for this as I still haven't seen a viable solution.



Neither Packages.com.glide.util.Encrypter or GlideEncrypter are accessible from within a scoped application, which begs the question, what options do we have for decrypting an encrypted Password2 field?



Thanks!


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


Excellent, thanks for the info. Worked like a charm!   Is this documented anywhere?



Jacob, I believe this will fix your issue.