Skip to main content
Question

How do I store and deploy a support file within the bot repository and refer to its path within a bot?


Forum|alt.badge.img+4

I have a supporting script (PowerShell) that is called by an A360 automation by invoking the PowerShell interpreter and passing it a variable that contains the path to the script file. The script file is currently deployed manually between dev/model/prod regions, so I store the full path to that region's script in a credential locker. However, the script itself doesn't change between regions.

 

I've noticed that A360 allows me to upload an arbitrary file to my task bot folder, and I can place the script there. This will relieve the burden of deploying the script manually between regions, however, I still need to be able to store the path to the script as a variable within the bot, so that the bot can invoke the PowerShell interpreter and tell it the path to that script. How can I assign and retrieve the path to a file uploaded to and deployed from the repository as a variable from within a bot?

3 replies

Forum|alt.badge.img+19
  • Most Valuable Pathfinder
  • 2693 replies
  • March 15, 2022

Hi @Ben Reiter​ ,

 

Have you tried "File: Copy Control Room file" command? Using this you can Download the File ( Irrespective of any extension ) during bot run.

 

File: Copy Control Room file


Forum|alt.badge.img+4
  • Author
  • Cadet | Tier 2
  • 8 replies
  • March 15, 2022

This action does not "remember" where it put the file, is that correct? So I would put the destination path in a variable, give the variable to the Download CR File action as the destination, and refer to it that way?


Forum|alt.badge.img+19
  • Most Valuable Pathfinder
  • 2693 replies
  • March 15, 2022

yes, you are right


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