Using Suitescript,resolve splitting of single data into multiple columns in csv file when there is comma (,) inside the data.

Consider the value inside variable data as “item, description”. There is a chance of splitting it into “item” in one column and “description” in another column. To resolve the issue JSON. stringify() the variable

let data = "item,description"
let dataStringified = JSON.stringify(data)

Leave a comment

Your email address will not be published. Required fields are marked *