How to use Stop Job

hi, I need to use stop job but I can not pass the job name, what should I do?

Hi @alena_scala

Can you please elaborate more on how can’t you pass the job name?

the activity contains the property job name like in the image below

also the Robot has to be connected to Orchestrator and the Robot role needs to also have the create and edit rights on jobs according to the following website.

Hope this helps,
Regards,
Reda

I think you need to use “Get Jobs” activity to get the Job as a Job type variable, which you can filter to specific jobs or run it through a loop since it will be an enumerable.

Also, make sure the Robot Roles is edited as mentioned here:

1 Like

I can not pass the job name to the stop job activity, I tried to make a for each on the list I get from get Job and pass the item but the activity gives me a connection error

the process return this error Get Jobs: Operation returned an invalid status code ‘BadRequest’