Unmask a Masked Field
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-20-2018 07:39 PM
5 REPLIES 5
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-02-2021 07:56 AM
Please use only documented way of getting decrypted value of a masked variable. Above code won't guarantee the correct decryption.
https://docs.servicenow.com/bundle/quebec-application-development/page/script/server-scripting/concept/c_ScriptableServiceCatalogVariables.html
This documents provide following API
- now_GR.variables.<var_name>.getDecryptedValue(): Get the decrypted value for a masked variable. Applicable only for a masked variable.
Please use this only.