I am creating a file in the file cabinet using the...
# suitescript
a
I am creating a file in the file cabinet using the the
N/file
module. There is a a key for
fileType
which I set to
file.Type.JSON
How do I set the contents of the file? When I try using the
contents
key and setting the value to my JSON, I get that its invalid argument I see in the help center
If the file type is binary (for example, PDF), the file content must be base64 encoded.
but this shouldn't be binary. Any suggestions?