Skip to main content
Cadet | Tier 2
June 24, 2022
Solved

How to use execute javascript using webautomation package

  • June 24, 2022
  • 3 replies
  • 173 views
How to use execute javascript using webautomation package
    Best answer by Automation Anywhere Team

    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.

     

    3 replies

    R0177Author
    Cadet | Tier 2
    June 24, 2022

    in A360

    Automation Anywhere Team
    October 17, 2022

    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.

     

    Navigator | Tier 3
    November 29, 2024

    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]+)-[A-Za-z0-9]+)\\.xls'    //'^(?<Description>[A-Za-z0-9\\-]+)_ST(?<StartDate>\\d{8})-ED(?<EndDate>\\d{8})_(?<BidId>(?<BidDateTime>\\d{8}-\\d{4})-(?<BidCustomerCode>[A-Za-z0-9]+)-[A-Za-z0-9]+)\\.xls');
    console.log(results);