Flow Designer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-21-2022 08:19 AM
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 //////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////// 3 //////////////////////////////////////////////////////////////////////////
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-21-2022 08:38 AM
Hi @natacha1 ,
Password field/variable should be of 'Password (2 Way Encrypted)' type to use the new GlideEncrypter().
I tried similar code in scripts-background and got the proper value.
Regards,
Reshma
**Please mark my answer correct or helpful based on the impact**
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-21-2022 08:54 AM
How can i find that type of variable in catalog items?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-21-2022 09:00 AM
Hi @natacha1 ,
No, we don't have that type of variable.
Check below link:
Regards,
Reshma
**Please mark my answer correct or helpful based on the impact**
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-21-2022 09:03 AM
So do you know any way i can do that in a variable of a catalog item?
Thank you for your help anyway:)