I am trying to connect to a third party service and download files as part of a technical workflow. However, when I tried to use the password from external account, I ended up learning that decryptPassword() can only be used in JSSP and SOAP calls.
How can I avoid hardcoding passwords in the workflow? And at the same time I dont want to configure a plain text password any where in the system?
I tried and it worked well in a JS activity (in a workflow) with decryptPassword on build 9032:
var account = NLWS.nmsExtAccount.load(999999);
var cryptedPassword = account.password;
logInfo('cryptedPassword:', cryptedPassword); // "@Ohdznkl1fre1fs6e4rg68rezbk1=="
//var password = decryptString(cryptedPassword); // use before build 8947
var password = decryptPassword(cryptedPassword); // use starting from build 8947
logInfo('password:', password); // "my_P@ssw0rd"