Solved

Passing Credential Variable to Python Script

  • 22 February 2023
  • 4 replies
  • 639 views

Badge +1

Hi, 

I’m using a python script which sends an Email via SMTP for a specific process. I wanted to pass the credential variables to my script, but it’s not allowed to pass a credential variable to a function. Is there a way to solve this issue?

So basically I want to fetch the username and password from Automation Anywhere Credentials and pass it to my python script.

Best Regards

Emil

icon

Best answer by Hakan 4015 21 March 2023, 15:34

View original

4 replies

Badge

Hi,

what is the status here?
I have a similar use case and would like to use credentials in my  python script

Badge +1

Hi Hakan, unfortunately there is no update. It is not possible to pass Credentials to a script, since it is only accepting String Variables. It is also not possible to convert a Credential Variable to a String Variable. I did not find a workaround yet. If I find a solution, I’ll share it here! 

Badge

Hi embitious,

 

there is a Package in the Bot Store called Credential Manager Package which should do the job, converting the Credential to a local variable.
https://botstore.automationanywhere.com/bot/a2019-credential-manager-package

 

Badge +1

Thanks Hakan!

I will check it out :)

Reply