Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Reset AD password Activity showing error

siva44
Tera Contributor

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);  

0 REPLIES 0