Reset AD password Activity showing error
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2024 05:25 AM
Hai I am using the workflow run script for reset AD password through workflow whenever i am trying to trigger the reset AD password then showing error like "Input variable Password is not Password2 type" and i am correctly mapped that encrypter value to password field in reset AD password activity
run script:
//Generate Random Password and Set AD password.
var encr= new GlideEncrypter();
var clearString = new PwdCryptoSecureAutoGenPassword().generatePassword();
var encrString = encr.encrypt(clearString);
workflow.scratchpad.pass = encrString;
var decrString = workflow.scratchpad.clearpass = encr.decrypt(encrString);