I am using Orchestrator API ( v2018.2 ) to invoke my workflow which I am able to do successfully by following steps below:
Authenticate to get token
Invoke workflow by providing token and ReleaseKey
Above steps are working fine.
In addition to above steps, I want to pass input arguments to workflow through Orchestrator API call ( https://platform.uipath.com/odata/Jobs/UiPath.Server.Configuration.OData.StartJobs ).
Can anyone guide me how to pass arguments in above mentioned scenario ?
1 Like
ovi
(Viorela Preda)
October 8, 2018, 11:18pm
2
Input Arguments are only available starting with 2018.3 version.
3 Likes
Thank you very much @ovi for the answer.
Hi @ovi ,
Can you help with the passing of arguments when invoking workflow using Orchestrator API.
I mean, what are the exact steps that I should follow?
This is the reference js that I am using: Sharing-Repo/index.js at master · NikhilAshodariya/Sharing-Repo · GitHub
I am new to RPA.
Your help will mean a lot.
Thanks in advance…
Hi @kaushikn ,
Assuming that your workflow has input arguments, here is an example of a body for a POST
at /odata/Jobs/UiPath.Server.Configuration.OData.StartJobs
with input arguments:
{
"startInfo":{
"ReleaseKey":"46bffa58-ead9-4e4e-9f16-81adce068e0b",
"RobotIds":[
1
],
"JobsCount":0,
"Strategy":"Specific",
"InputArguments":"{\"Array\":234,\"stringNew\":\"test string\",\"arrayStrings\":[\"first string\",\"second string\"]}"
}
}
More info about this can be found here: About OData and References
I hope this helps,
Andrei
1 Like