Excel Add-In for NetSuite

Build 24.0.9060

UploadFile

Upload files in Netsuite

Input

Name Type Description
FolderId String Id of the folder in which to store the file
LocalFile String The local file path including the file name of the file to be uploaded. A value for this field is required when FileData is not specified.
FileData String A string of data that will be used as the full contents of the file. This must be base-64 encoded. Required if FullPath is not specified.
MediaType String The type of file

The allowed values are AUTOCAD, BMPIMAGE, CFF, CONFIG, CSV, EOT, EXCEL, FLASH, FREEMARKER, GIFIMAGE, GZIP, HTMLDOC, ICON, IMAGE, JAVASCRIPT, PGIMAGE, JSON, MESSAGERFC, MISCBINARY, MISCTEXT, MP3, MPEGMOVIE, MSPROJECT, OTF, PDF, PJPGIMAGE, PLAINTEXT, PNGIMAGE, POSTSCRIPT, POWERPOINT, QUICKTIME, RTF, SMS, STYLESHEET, SVG, TAR, TARCOMP, TIFFIMAGE, TTF, VISIO, WEBAPPPAGE, WEBAPPSCRIPT, WOFF, WOFF2, WORD, XMLDOC, XSD, ZIP.

The default value is PLAINTEXT.

FileName String The name you would like to give the document. If none is specified, the file name specified in the FullPath will be used. Required if FileData is specified.
TextFileEncoding String The encoding to submit to NetSuite when using a text file. Leave this blank if not uploading a type of text file.

The allowed values are _big5, _gb2312, _gb18030, _iso88591, _macRoman, _shiftJis, _utf8, _windows1252.

Result Set Columns

Name Type Description
InternalId String The internalid of the saved file.
IsSuccess String Whether or not the operation was successful.
StatusMessage String The message of the returned status. May be empty if the operation was successful.
StatusCode String The returned status code. May be empty if the operation was successful.

Copyright (c) 2024 CData Software, Inc. - All rights reserved.
Build 24.0.9060