Skip to main content
Solved

Passing Credential Variable to Python Script

  • February 22, 2023
  • 4 replies
  • 1289 views

Forum|alt.badge.img+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

Best answer by Hakan 4015

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

 

View original
Did this topic help answer your question?

4 replies

Hi,

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


Forum|alt.badge.img+1
  • Author
  • Cadet | Tier 2
  • 3 replies
  • March 21, 2023

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! 


  • 4 replies
  • Answer
  • March 21, 2023

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

 


Forum|alt.badge.img+1
  • Author
  • Cadet | Tier 2
  • 3 replies
  • March 22, 2023

Thanks Hakan!

I will check it out :)


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings