Hi team, Trying to push a string value which has p...
# suitescript
s
Hi team, Trying to push a string value which has preceding zeroes (eg: x= "000015373") into a csv file. And the preceding zeroes were discarded, Hence enclosed the string with quotations ("\""+x+"\""). This resulted in pushing correct value into the csv. But when the file is viewed in notepad, it appears as """000015373""". Any ideas of what is the issue and how to rectify it ?
b
if you want the csv value to be "000015373", then the raw csv column value """000015373""" is the value
one layer of quotes is for the escape mechanism
another layer of quotes is to escape the escape character
you can go through the csv rfc for more detail, usually rfcs are painfully boring, but this one is pretty short