Read and Review Automation Anywhere Documentation

Automation Anywhere Version 11.3

Close Contents

Contents

Open Contents

Calling Tasks from Programs or Scripts

  • Updated: 5/12/2020
    • 11.3.x
    • Explore
    • Enterprise

Calling Tasks from Programs or Scripts

You can call Automation Anywhere tasks from other programs, scripts, or batch files. By default, Automation Anywhere saves all tasks in the folder named: My Documents\Automation Anywhere Files\Automation Anywhere

Calling a Task from a Batch File

Task-name: download-emails.atmx

Call the task named download-emails.atmx from a batch file by adding the following line in the batch file:

"C:\Program Files\Automation Anywhere 7.0\Client\AA.Player.exe"

"/fD:\My Documents\Automation Anywhere Files\Automation Anywhere\My Tasks\download-emails.atmx/e"

Calling a Task from an Excel Macro

Task-name: download-data.atmx

To call the download-data.atmx task from an Excel macro, add the following text to the Excel macro:

Dim RetVal

RetVal = Shell("C:\Program Files\Automation Anywhere Enterprise 7.0\Client\AA.Player.exe "/fD:\My Documents\Automation Anywhere Files\Automation

Anywhere\My Tasks\download-data.atmx"/e", 1)

If the task is successful, it returns 0 to the calling program. If it encounters an error, it returns 1.

Send Feedback