Can we run Attended automation from Control-M?

Hi, my organization is currently using python scripts for automation, these scripts are scheduled to run from Control-M tool, on specific time. Now we have 2 UiPath Attended bots licenses, and we dont have orchestrator, is it possible to run these attended bots from Control-M?

Hello @Tech, try something along these lines:

  1. Prepare Your Workflow:
  • Ensure that your UiPath automation workflows are ready and published as packages.
  1. Install UiPath CLI:
  • Install the UiPath Command Line Interface (CLI) on the machine where Control-M is running. You can download the CLI from the UiPath website.
  1. Configure Environment Variables:
  • Set up environment variables like UIPATH_HOME and UIPATH_USER_PROFILE to point to the relevant UiPath directories on the machine. This is necessary for the UiPath CLI to work correctly.
  1. Trigger Automation:
  • Use Control-M to execute a script or command that calls the UiPath CLI to run a specific workflow using one of your Attended Bot licenses.

Here’s an example of how to trigger a UiPath workflow from the command line using the UiPath CLI:

UiRobot.exe execute --file "C:\Path\To\Your\Package.nupkg" --input "inputArguments.json" --output "outputArguments.json"

In this command:

  • execute: Specifies the action to execute a workflow.
  • --file: Specifies the path to the published package (.nupkg file) of your UiPath workflow.
  • --input: Optionally, you can provide input arguments for your workflow in JSON format.
  • --output: Optionally, you can specify an output file to capture the results.

You would replace "C:\Path\To\Your\Package.nupkg" with the actual path to your published workflow package.

Cheers! :slight_smile: