- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-06-2017 04:38 AM
Thanks in Advance.
In my dev instance , facing an error while using this Function getDecryptedvalue to decrypt a 2way encrypted password.
Let me know if there is any plugin needs to be activated.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-06-2017 05:05 AM
Hi Chuck,
Thanks for the suggestion and i have tried this also before.
and not finally figured out that in function getDecryptedValue, V should be capital.
Thanks for your time.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-06-2017 04:50 AM
Hi all,
This is the script i'm trying to execute in scoped application.
var password = (current.password).toString();
var decrypt = password.getDecryptedvalue();
workflow.scratchpad.password = (decrypt).toString();
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-06-2017 04:55 AM
Thank you. getDecryptedValue is not a string method, but a GlideElement method. When you used toString() you changed the type. The parenthesis don't seem to make much sense on line 1 either, by the way.
Try this:
var password = current.password;
var decrypt = password.getDecryptedvalue();
workflow.scratchpad.password = decrypt;
Reference: https://developer.servicenow.com/app.do#!/api_doc?v=jakarta&id=SGE-getDecryptedValue
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-06-2017 05:05 AM
Hi Chuck,
Thanks for the suggestion and i have tried this also before.
and not finally figured out that in function getDecryptedValue, V should be capital.
Thanks for your time.
