UiPath Orchestrator jobs by external Application using API

@Anil_G

I have done the following . In body do I need to copy the same as you gave in swagger screenshots?

@Anil_G

how to get the JSON body as per the job? how you got this JSON Body?

@dutta.marina

please remove all query parameters

to be replaced by the response from previous api

json payload or body please get from swagger

Example

{
  "startInfo": {
    "ReleaseKey": "<Release Key to be obtained from get releases api>",
    "Strategy": "ModernJobsCount",
    "Source": "Manual"
    
  }
}

if using auth as bearer token no need to add in header again

cheers

@Anil_G

shall I remove this ?params and keep only token secret response from previous API?

I not sure how to generate the JSON body in swagger ?let me know the steps Please. That would be helpful for me . Can I generate the payload from UiPath and use in Postman and try to see if its working ? Is payload same as the JSON body?

@dutta.marina

already gave all details in previous comment

as usign auth already remove the header

remove all query parameters

use the json as given above…first get one of the release keys

cheers

@Anil_G

will the release key be constant or change with every API call?

@dutta.marina

It will be contant for each process…changes based on process

Cheers

@Anil_G

In Params , do we need to put organization name , unit ? for getting process keys

@dutta.marina

In header we need to add x-UIPATH-OrganizationUnitId which is the folder id you see when you open the orchestrator folder fid

Cheera

@Anil_G

These folders. For example I want for Coupa_PDF_downliad folder

@dutta.marina

Open it check the url

Cheers

@Anil_G

Got it. I want to filter by process name

@dutta.marina

this is a one time activity anyways…try to get the response and verify process name etc directly

cheers

@Anil_G

https://cloud.uipath.com/{organizationName}/{tenantName}/orchestrator_/odata/Releases?$filter=%20Name%20eq%20’all_activities_DocEnv’

Actually I am using this as url and in UiPath I got the response as below .

Filter -I want to filter based on process name Coupa_PDF_Download

@dutta.marina

org unit id is what you would use it is a folder and not process

please try to verify swagger as we have given almost all the info by now

cheers

@Anil_G

Just one error I am getting . I got all your steps .Just the below error. I am trying to get process key by Name

@dutta.marina

your scope should align with what api calls you are making

please verify swagger

cheers

1 Like

@Anil_G

I was able to trigger jobs. Thank You for Salesforce external application. Only thing I am able to get process keys from UiPath Orchestrator HTTP request but not from Postman.

1 Like

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