I wanted to try to trigger a Unattended Robot with a powershell script. Here’s how I want it works :
- A powershell script monitor one (or multiples) folder
- This script add a item to a orchestrator’s queue if any file is put into this folder
- This queue trigger the unattended robot
- The robot do the process
Why don’t you call the robot periodically?
In order to use as little as possible in anticipation of having other robots and other treatments to do later.
Why not use the activiter trigger?
Because it is not worth leaving a robot permanently activated for only one type of treatment.
I made some search on powershell interactions with orchestrator API and I found this : https://github.com/UiPath/orchestrator-powershell
I managed to install the powershell module but I can’t connect with Get-UiPathAuthToken even though my orchestrator url is good (https://platform.uipath.com) and my credentials are good too. Is someone already tried to call orchestrator API with powershell could help me to connect and add a queue item ?