Leveraging Intelligent Recommendations for Operational Transformation. AMS Partners Click HERE | EMEA/APJ Click HERE |
07/28/2023 07:58 AM
Has anyone worked with UIPath to pass in inputArguments as a part of httpParams for the StartJobs endpoint? Sample CrateAccountJSON below. The data passes if we omit inputArguments, but fails when we attempt to use inputArguments. Not sure if single quotes need to be escaped or not.
{
"call": [{
"name": "call1",
"connection": "acctAuth",
"url": "{{environment_base}}/odata/jobs/UiPath.Server.Configuration.OData.StartJobs",
"httpMethod": "POST",
"httpParams": "{\"startInfo\":{\"ReleaseKey\":\"{{release_key}}\",\"Strategy\": \"Specific\",\"RobotIds\": [{{single_robot_id}}], \"Source\": \"Manual\", \"InputArguments\": \"{'in_Login':'Yes','in_TestVar1':'Test','in_TestVar2':'User1}}",
"httpHeaders": {
"Authorization": "${access_token}"
},
"httpContentType": "application/json",
"successResponses": {
"statusCode": [201]
}
}]
}
07/30/2023 08:53 PM
Please try once with below:
{
"call": [
{
"name": "call1",
"connection": "acctAuth",
"url": "{{environment_base}}/odata/jobs/UiPath.Server.Configuration.OData.StartJobs",
"httpMethod": "POST",
"httpParams": "{\"startInfo\": {\"ReleaseKey\": \"{{release_key}}\",\"Strategy\": \"Specific\",\"RobotIds\": [\"{{single_robot_id}}\"],\"Source\": \"Manual\",\"InputArguments\": {\"in_Login\": \"Yes\",\"in_TestVar1\": \"Test\",\"in_TestVar2\": \"User1\"}}}",
"httpHeaders": {
"Authorization": "${access_token}"
},
"httpContentType": "application/json",
"successResponses": {
"statusCode": [
201
]
}
}
]
}
08/02/2023 06:49 AM
I actually looked at the logs, and Saviynt is converting the single quotes to what you have provided. So I'm not sure that is the issue or not.
08/02/2023 10:07 AM
{{release_key}} and {{single_robot_id}} are just place holders in the shared json or are the present in actual json. If its present in actual jsons also then how are you getting values in them populated while connector invokes the url.
Also did you try the shared json and getting same issue.?
08/07/2023 02:09 AM - edited 08/07/2023 09:37 PM
Hi @aalvarez_mk ,
Analyzing the JSON, I see that there are discrepancies in the number of opened and closed braces. Can you please check?
Also, UIPath is available under the Saviynt Exchange platform. Please check out the link for more information.
Thank you
Vedanth B.K