Start Job Script

Hello,

I would like to create a script in order to start and another one to stop specific jobs via Orchestrator.
Did you do this before?
Any ideas please? :slight_smile:

Best regards,
Ioana

@Ioana_Renard

Please use orchestrator api requests to perform these…for details on pylod check the swagger

<orchestratorurl>/swagger/index.html will take you to the swagger file where all apis are listed and you have api for start job and stop job as well

https://docs.uipath.com/orchestrator/automation-cloud/latest/api-guide/consuming-cloud-api

Detailed steps

Some help here

  1. Use get releases to get the release key to start a process
  2. Get users api to get the robot id
  3. Get machines api to get the machine id

2 and 3 are needed if you want to start on a specific user else release key should be enough

Stop job can be done through job key

Cheers

1 Like

Hi

We have an activity called START JOB and STOP JOB that can be used to start and stop a particular job
Here we need to pass the job name with property

  • Job - Specify the job to be stopped or killed. This property supports OrchestratorJob variables.

Have a view on these two docs for more details on that activity

https://docs.uipath.com/activities/other/latest/user-guide/stop-job

https://docs.uipath.com/activities/other/latest/user-guide/start-job

For start job u need to pass the process name

  • ProcessName - The display name of the process you want to use for the job as it appears in Orchestrator (it could be found in Additional Settings field of the process settings). For example, if the name of the package is “InvoiceScan” and you named the process “Invoice Scanner”, the string in this field should be “Invoice Scanner”. This field supports only strings and String variables.

Cheers @Ioana_Renard

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