UiPath Orchestrator jobs by external Application using API

Hi All,

I am trying to trigger the UiPath Orchestrator jobs by an external application . For example , I have Salesforce application . When ever there is a new sku added in Salesforce it should trigger my Orchestrator jobs via API . How can I achieve this ,?

Any new sku added in Salesforce should trigger my UiPath jobs in Orchestrator via REST API

@Anil_G
@Yoichi
@supermanPunch

Any help on this ?

@dutta.marina

Start job api is what you need to use…before that create an external application and save client id and secret to hit the authentication url and get bearer token

Cheers

1 Like

@Anil_G

I have added the external application and got client id and client secret

@Anil_G
Got this Client ID and secret. What will be my next steps?

@dutta.marina

send post call to https://cloud.uipath.com/identity_/connect/token

you will get bearer token

use that in further call

cheers

1 Like

Do I need to give the bearer token to Salesforce team . Because the trigger should be from Salesforce whenever new SKu is added in Salesforce .

@dutta.marina

then you should give client id and secret to them
token will expire
they would need client id and all to retreive again

cheers

If I want to test in Postman whether the API call is working or not , then once the secret token is generated what is the next step?

@dutta.marina

use start job api send bearer token in auth and body as you need depending on what job you need

cheers

Can you show in postman or there is any activity in UiPath ?directly for start job api ?

@dutta.marina

in UiPath start job activity is there…search in activities

if you need api then try in swagger

cheers

@Anil_G

Getting error in scope

@Anil_G

do I need to give the url something like this

@dutta.marina

the scope should be same as what scope you selected in your external application

and url will be as is for auth…for relative end point it would differ

cheers

@Anil_G

My orchestrator development url is

do I need to consider this url as end point url?

@dutta.marina

for start job you need to use this…only till oechetsrator_

cheers

@Anil_G

for getting secret token also need to use this url?

@dutta.marina

no you need to use the url I have shown above

cheers

@Anil_G

ok I got the access token. Next is start job? can i do that also in postman?

@dutta.marina

yes

in header authorization would be bearer <token>

and body as per the job give the json body…look at swagger

cheers