Orchestrator API Post Start Job via .JobsDto

I know how to start a job in the Orchestrator via Api. For testing purposes I just copied the json from this website: https://postman.uipath.rocks/#7286ec74-9665-4a4f-81b2-21dcee837c8e

Now I would like to build the request in studio itself like it is done for schedules over here: Orchestrator API Post Schedule via .ProcessScheduleDto in Studio. How to DEV in Studio?

I have built a service with all the api functions from the Orchestrator library_orchestrator_api

But I run into errors when I try

parameters = new UiPathOrchestratorApi.JobsStartJobsParameters (defined as UiPathOrchestratorApi.JobsStartJobsParameters)
parameters.StartInfo.NoOfRobots = 0

Anybody tips on this?

I found the answer myself:
parameters = new UiPathOrchestratorApi.JobsStartJobsParameters
parameters.startinfo = new UiPathOrchestratorApi.StartProcessDto
parameters.StartInfo.ReleaseKey = release_key

1 Like

I am sending you information on how it works for me:

startJobParameters = New UiPathOrchestratorApi.StartJobParameters
startJobParameters.StartInfo = New UiPathOrchestratorApi.StartProcessDto

startJobParameters.StartInfo.RobotIds = RobotID As Int64[]
startJobParameters.StartInfo.ReleaseKey = ReleaseKey As String
startJobParameters.StartInfo.Strategy = Strategy As Nullable<UiPathWebAPI.StartProcessDtoStrategy> eg.: UiPathWebAPI.StartProcessDtoStrategy.Specific
startJobParameters.StartInfo.NoOfRobots = NoOfRobots As Nullable<Int32>
startJobParameters.StartInfo.JobsCount = JobsCount As Nullable<Int32>
startJobParameters.StartInfo.Source = Source As Nullable<UiPathOrchestratorApi.StartProcessDtoSource> eg.: UiPathOrchestratorApi.StartProcessDtoSource.Manual
startJobParameters.StartInfo.InputArguments = InputArguments As String
Flow screenshots:

1 Like

Thanks again for your detailed answer!

1 Like

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