I’m trying to follow the documentation for using a VB script with parameters: (https://docs.automationanywhere.com/bundle/enterprise-v2019/page/enterprise-cloud/topics/aae-client/bot-creator/commands/vbscript-run-function.html)
I have a working script which I can execute from outside of AA to add x number of business days to a date. This script is tested and working. However, I cannot get it to execute in AA.
- I have created a list variable for the parameters as instructed in the documentation
- I have added two string parameters to the list
- I’m using the list variable in the Parameters (optional) input for ‘Run Function’
- I’m saving the output to a string variable
All I get is ‘bot error’ when I run this.
Note that I have tried adding quotations around the strings before adding them to the list. Same result. Can someone please tell me where I’m doing something wrong here?
![](https://uploads-us-west-2.insided.com/automationanywhere-en/attachment/50c42da9-2451-4a29-b951-11b54c2ab10e.png)
Here is the script for reference:
![](https://uploads-us-west-2.insided.com/automationanywhere-en/attachment/78a7f091-b76c-46c0-8ca9-e7a3953c37dd.png)
Best answer by JMarino
View original