Skip to main content
How to use execute javascript using webautomation package

in A360


Hello @Vijila 77​ 

 

In A360 we have an inbuilt JavaScript package so using that you can run any function of the Javascript.

 

Please refer to the below link for the same.

 

https://docs.automationanywhere.com/bundle/enterprise-v2019/page/enterprise-cloud/topics/aae-client/bot-creator/commands/cloud-javascript-command.html

 

Also, the Legacy web automation package is mainly used for migrated bots.

 

https://docs.automationanywhere.com/bundle/enterprise-v2019/page/enterprise-cloud/topics/aae-client/bot-creator/commands/cloud-legacy-automation-package.html/p>

 

If you still need further help kindly raise a support case.

 


Any function? Can someone demonstrate how I can get the following simple RexExp function to work without returning “bot error”. It should return:

“PCAGoldenValleyMinneapolisOpportunities_ST20240501-ED20241101_20240820-0855-PACOA-FRV.xls,PCAGoldenValleyMinneapolisOpportunities,20240501,20241101,20240820-0855-PACOA-FRV,20240820-0855,PACOA”

function string_parse(source, regex) { return source.match(new RegExp(regex)).toString(); }

results = string_parse(    'PCAGoldenValleyMinneapolisOpportunities_ST20240501-ED20241101_20240820-0855-PACOA-FRV.xls',    '^(,A-Za-z0-9\\-]+)_ST(\\d{8})-ED(\\d{8})_((\\d{8}-\\d{4})-(\A-Za-z0-9]+)-zA-Za-z0-9]+)\\.xls'    //'^(?<Description>tA-Za-z0-9\\-]+)_ST(?<StartDate>\\d{8})-ED(?<EndDate>\\d{8})_(?<BidId>(?<BidDateTime>\\d{8}-\\d{4})-(?<BidCustomerCode>CA-Za-z0-9]+)-zA-Za-z0-9]+)\\.xls');
console.log(results);

Reply