How to run the first available robot in Startjob API

Hello,

I have two robots inside an environment, and I’m starting a job through Startjob API.

The strategy in API is all.

I want the first available robot to run, not all of them.

How can I do that?

1 Like

Hi,

I am researching the exact same thing now :sweat_smile:

Thanks for posting this @Salem_Ababneh

@Lahiru.Fernando @ppr @balkishan @loginerror can you help?

:joy: I think it has something to do with Jobs api.

1 Like

@Salem_Ababneh @Shubham_Varshney

Possible values for strategy are: All, Specific or RobotCount. Change All to either Specific or RobotCount, and then modify the RobotIds and NoOfRobots accordingly.

https://www.uipath.com/hubfs/Documentation/OrchestratorAPIGuide_2016.2/UiPathOrchestratorAPIGuide_2016.2.html#StartProcessDto

1 Like

Thanks!

This has worked for me @bradsterling @Shubham_Varshney:

{
“startInfo”: {
“ReleaseKey”: “[Release_Key]”,
“InputArguments”: “[Arugments]”,
“Strategy”: “RobotCount”,
“RobotIds”: ,
“NoOfRobots”: 1
}
}

2 Likes

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.