I’m a novice here when it comes to Postman and most things development but have a hopefully quick question pertaining to using Postman to update a series of records with a csv file. All I am wanting to do is mass update a series of account records that are defined in a csv file.
And still encounter the error:
Could not read JSON: Unexpected character (‘{’ (code 123)): was expecting double-quote to start field name\n at [Source: org.apache.catalina.connector.CoyoteInputStream@256f884d; line: 2, column: 11]; nested exception is org.codehaus.jackson.JsonParseException: Unexpected character (‘{’ (code 123)): was expecting double-quote to start field name\n at [Source: org.apache.catalina.connector.CoyoteInputStream@256f884d; line: 2, column: 11]
I assume this has to do with the body where I am referencing parameters {{Id}} and {{PaymentTerm}}.
{
“Id”: {{Id}},
“PaymentTerm”: {{PaymentTerm}}
}
The Zuora REST API is specific in that I have to insert the key in the url such as:
Thanks for the reply and suggestions. The preview does show the data properly. I kept it simple with two columns and two rows. Even in the console, it shows it correctly:
Request Body:"{ “Id”: 2c92c0f94d94d061014d96336fb44a2b, “PaymentTerm”: Net 30 }"
One info here I thought would be of help - you can use another library for parsing CSV inside script. The module “csv-parse” is available for use inside the scripts.