Loading...
Loading...
Not able to unmask masked variable in flow designer. Prior to the Tokyo release: Use GlideEncrypter() API. Tokyo release or later: GlideEncrypter() API no longer works for this case. An alternative workaround that works on any release is to use an inline script or action with a script step to access and unmask the masked variable. Steps to Reproduce 1. Login in to OOB instance 2. Try to unmask any masked variable by adding below code in the action script var password = fd_data._1__get_catalog_variables.u_password.getDecryptedValue(); return password; 3. getDecryptedValue() should allow to decrypt any encrypyed value in general but it does not work as expected in Flow Designer. 4. The result of above function is undefined which is not the actual behavior. In Tokyo and later releases the previously suggested workaround using the GlideEncrypter API no longer works. For example, the below only works prior to Tokyo: var encr = new GlideEncrypter(); var decrString = encr.decrypt(fd_data._1__get_catalog_variables.password); return decrString;
Pass the requested item to a script to access variable and then unmask it with the getDecryptedValue method. For example if "requested_item" is an input to the subflow and "masked_text" is the name of a catalog variable then this inline script will work: var masked = fd_data.subflow_inputs.requested_item.variables.masked_text; return masked.getDecryptedValue();
PRB1406020
Click on a version to see all relevant bugs
ServiceNow Integration
Learn more about where this data comes from
Bug Scrub Advisor
Streamline upgrades with automated vendor bug scrubs
BugZero Enterprise
Wish you caught this bug sooner? Get proactive today.