我正在尝试(Ex: C:\Document\Report.txt)
通过 uipath orchastrator api 使用文件名路径作为参数。我尝试了不同的方法,在每种方法中我都收到错误请求错误"{"message":"Argument Values validation failed.","errorCode":2003,"resourceIds":null}"
下面是我的示例代码
FileListUploaded ="C\\Documents\\report.txt";
string parameter1 = "{\"startInfo\": {\"ReleaseKey\": \"xxxxx-xxx-xxx-xxx-xxxxxx\"," +
"\"RobotIds\": [xxxxx]," +
"\"JobsCount\": 0," +
"\"InputArguments\": \"{ "+
"\\\"reports_or_other_files\\\": \\\" + FileListUploaded + \\\"}\"}}";
request_startRobot.AddParameter("application/json; charset=utf-16", parameter, ParameterType.RequestBody);
IRestResponse response_startRobot = client_startRobot.Execute(request_startRobot);