Get a first look at what's coming. The Developer Passport Australia Release Preview kicks off March 12. Dive in! 

Flow Designer

natacha1
Tera Contributor

Hi, i'm trying to send an email that shows an encrypted masked variable through flow designer and the answer is always a big code instead of the word i want.

 

Different codes in flow designer i've tried:

/////////////////////////////////////////////////////// 1 //////////////////////////////////////////////////////////////////////////

var encr = new GlideEncrypter();
var sen = encr.decrypt(fd_data._4__get_catalog_variables.new_pass);

return "New pass: " + sen;

 

/////////////////////////////////////////////////////// 2 //////////////////////////////////////////////////////////////////////////

var sen = fd_data._4__get_catalog_variables.new_pass.getDecryptedValue();
return "New pass: " + sen;
 

/////////////////////////////////////////////////////// 3 //////////////////////////////////////////////////////////////////////////

var sen = new GlideEncrypter().decrypt(fd_data._4__get_catalog_variables.new_pass);
return "New pass: " + sen;
 
 
Hope you can help me 🙂
5 REPLIES 5

Not applicable

Flow's are not able to handle Mask variable values directly. If the Mask variable is encrypted follow this article: https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0826510

If not encrypted >> Pass the variable to a Flow action >> Use a glide lookup and return the vale as usual via an output variable:

Ex: 

ThusithaSamar1_0-1708401606465.png