Flow Designer action to decrypt Password2 variable

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2023 01:18 PM
I have a flow to create a user and in that flow I use the "Microsoft Active Directory v2 spoke" action to generate a random password, which is a two-way encrypted password. I need to use this decrypted password and send it later in an email at the end of the flow.
I created a "decrypt password" action that I inserted into the flow but I am not able to get it to pass a decrypted password back to the flow.
The input on the action is the password generated
I made a script step using that input as follows
(function execute(inputs, outputs) {
var decpassword = inputs.password;
return decpassword.getDecryptedValue();
outputs.decpassword;
})(inputs, outputs);
I've tried it without the line "outputs.decpassword;"
I've also tried
(function execute(inputs, outputs) {
var crpassword = inputs.password;
outputs.decpassword = crpassword.getDecryptedValue();
})(inputs, outputs);
This is my output variable
And my action output
In the parent flow, it is not returning any value:
If it looks like I'm throwing spaghetti at a wall to see what sticks, I am sort of because this is my first stab at something like this in flow designer. Hopefully someone can spot what I've done wrong or offer suggestions! TIA
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2024 07:59 PM
Thank you @harshav . Given code is nicely working. Can see the decrypted password/token values at the flow execution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-20-2024 03:40 AM
Has there been any update on this? Have the same issue/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-16-2024 12:22 AM
Facing the same issue, any update on this?