Hi Guys I have created a C# UiPath project and I am trying to do a post request on a custom Salesforce url. I provide an input Json body in that I also provide a variable that has contents of the file in it. The json is giving error .“Unexpected character (‘’’ (code 39)): was expecting double-quote to start field name at [line:1, column:3]","errorCode":"JSON_PARSER_ERROR"}]”,.
The input Json is “{‘Title’:‘response5’,‘PathOnClient’:‘C:\UiPath\response5.pdf’,‘ContentLocation’:‘S’,‘VersionData’:'”+base64File+“'}”

You need to use double-quote instead of single-quote.
Try this instead:
$@"{{""Title"":""response5"",""PathOnClient"":""C:\\UiPath\\response5.pdf"",""ContentLocation"":""S"",""VersionData"":""{base64File}""}}"
Thanks it works by using the above json format
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.