Automic community,
This question is in particular related to Windows Agent (Server 2012 R2, if it matters).
How do I pass decrypted value from protected attribute on Promptset On Windows Agent to External Interpreter code?
Given following attributes on Promptset on Custom Action
username --> &UNAME
password (protected) --> &UPWD
Windows JOBS excerpt (my attempt with some ???? placeholders):
&UC_JOBMD CMD="????? &UPWD
:SET &decryptedPW
:BEGIN_EXT_INT PYTHON
user = '&UNAME
pwd = '&decryptedPW
access_resource(user, pwd)
:END_EXT_INT PYTHON
Do you have some pointers how to approach solution for this problem?
I know if python code was part of external python file, I could pass it as input option parameters, like shown below, but how to make it work as part of embedded external interpreter code is not clear to me.
&UC_JOBMD CMD="python D:/my-file.py --user '&UNAME