Hi All,
I have a requirement where i have to pass the value from variable into the webapi . I am receiving 500 error as the following code is not in Json format.
|post web api | testWebapi | with body |{"var1":tv!variable} |with username| testUsername
Did anyone of you face similar issue and how do we pass the tv!variable in Json Format.
Thanks In advance
Regards,
Sahithi
Discussion posts and replies are publicly visible
Hi sahithip120 Couple of questions here: 1. Is you Web-API trying to store the body data into the database? 2. If so, does it's Body contain a Date / Date and Time type values converted into JSON format? 3. If so, try defining it as null for a moment and try executing the WEB-API, but if not then i believe we need to have a look into the logs to understand the root cause behind this exception. Also can you please share your JSON Data here so that it will be easy to understand the actual issue.