Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2024 06:17 AM - edited 04-19-2024 06:21 AM
So, I had this issue and I spoke to Support, who suggested "its not a natural way to use password2 fields" From my own assumptions, the field is not being decrypted on the fly so it sends the encoded gibberish, which is the wrong value.
So, yes you seem to have to decrypt the value in a script step before using it in the body
(function execute(inputs, outputs) {
var grsBAC = new GlideRecordSecure('basic_auth_credentials');
if (grsBAC.get('name', '<YOUR_CREDENTIAL_NAME>')) {
var sPassword = grsBAC.getElement('password').getDecryptedValue();
outputs.plain_text = sPassword;
}
})(inputs, outputs);
**remember to set the output value at the bottom of the script step
Then use "plain_text" in your body.
***NB: As of Washington, there is an extra requirement to enable access to the Decrypter, you'll need to set up a system access KMF record ( I wont go through the entire process) but check this:
https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB1112530
https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB1112530
Good luck!