NetSuite包含Alpha&;的文件类型列表;数字标识

NetSuite包含Alpha&;的文件类型列表;数字标识,netsuite,suitescript,suitescript2.0,Netsuite,Suitescript,Suitescript2.0,是否有人有NetSuite文件类型id列表,包括字母id和数字id 需要在下面的列表中展开 var filetype = { 10 : 'PLAINTEXT', 12 : 'XMLDOC', 14 : 'CSV', 17 : 'PDF', 38 : 'JSONFILE', }; 要求获取列表类型“文件类型”的自定义首选项,该选项返回数字ID 然后将其传递给filetype[numeric_id]以返回实际的alpha id AutoCad = 34 BM

是否有人有NetSuite文件类型id列表,包括字母id和数字id

需要在下面的列表中展开

var filetype = {
    10 : 'PLAINTEXT',
    12 : 'XMLDOC',
    14 : 'CSV',
    17 : 'PDF',
    38 : 'JSONFILE',
};
要求获取列表类型“文件类型”的自定义首选项,该选项返回数字ID

然后将其传递给filetype[numeric_id]以返回实际的alpha id

AutoCad = 34
BMP Image = 6
Compressed Tar File = 37
CFF File = 46
Configuration File = 39
CSV File = 14
EOT File = 47
CSS File = 11
Excel File = 22
Flash Animation = 1
FreeMarker Template File = 41
GIF Image = 4
GNU Zip File = 27
HTML File = 9
Icon Image = 8
Image = 31
JavaScript File = 13
JPEG Image = 2
JSON Response = 38
LZH File = 49
Message RFC = 35
MP3 Audio = 30
MPEG Video = 29
OTF File = 45
Other Binary File = 32
PDF File = 17
PJPEG Image = 3
Plain Text File = 10
PNG Image = 5
PostScript File = 21
PowerPoint File = 23
Project File = 25
QuickTime Video = 28
RTF File = 20
SMS File = 18
SuiteScript File = 16
SuiteScript Page = 15
SVG Image = 48
Tar File = 36
Text File = 33
TIFF Image = 7
TTF File = 44
Visio File = 24
WOFF File = 42
WOFF2 File = 43
Word File = 19
XML File = 12
XSD File = 40
Zip File = 26

我相信这些应该是Netsuite中的所有文件类型。为了进一步参考,您可以查看SuiteAnswers 67814和10496。(需要NS登录)

对于那些希望为常见文件类型提供有用的对象常量的人:

const FILETYPES = {
'AUTOCAD' : {typeid : 'AUTOCAD', name : 'AutoCad', extension : '.dwg', contentType : 'application/x-autocad', internalid : 34},
'BMPIMAGE' : {typeid : 'BMPIMAGE', name : 'BMP Image', extension : '.bmp', contentType : 'image/x-xbitmap', internalid : 6},
'CSV' : {typeid : 'CSV', name : 'CSV File', extension : '.csv', contentType : 'text/csv', internalid : 14},
'EXCEL' : {typeid : 'EXCEL', name : 'Excel File', extension : '.xls', contentType : 'application/vnd.ms-excel', internalid : 22},
'FLASH' : {typeid : 'FLASH', name : 'Flash Animation', extension : '.swf', contentType : 'application/x-shockwave-flash', internalid : 1},
'GIFIMAGE' : {typeid : 'GIFIMAGE', name : 'GIF Image', extension : '.gif', contentType : 'image/gif', internalid : 4},
'GZIP' : {typeid : 'GZIP', name : 'GNU Zip File', extension : '.gz', contentType : 'application/x-gzip-compressed', internalid : 27},
'HTMLDOC' : {typeid : 'HTMLDOC', name : 'HTML File', extension : '.htm', contentType : 'text/html', internalid : 9},
'ICON' : {typeid : 'ICON', name : 'Icon Image', extension : '.ico', contentType : 'image/ico', internalid : 8},
'JAVASCRIPT' : {typeid : 'JAVASCRIPT', name : 'JavaScript File', extension : '.js', contentType : 'text/javascript', internalid : 13},
'JPGIMAGE' : {typeid : 'JPGIMAGE', name : 'JPEG Image', extension : '.jpg', contentType : 'image/jpeg', internalid : 2},
'JSON' : {typeid : 'JSON', name : 'JSON File', extension : '.json', contentType : 'application/json', internalid : 38},
'MESSAGERFC' : {typeid : 'MESSAGERFC', name : 'Message RFC', extension : '.eml', contentType : 'message/rfc822', internalid : 35},
'MP3' : {typeid : 'MP3', name : 'MP3 Audio', extension : '.mp3', contentType : 'audio/mpeg', internalid : 30},
'MPEGMOVIE' : {typeid : 'MPEGMOVIE', name : 'MPEG Video', extension : '.mpg', contentType : 'video/mpeg', internalid : 29},
'MSPROJECT' : {typeid : 'MSPROJECT', name : 'Project File', extension : '.mpp', contentType : 'application/vnd.ms-project', internalid : 25},
'PDF' : {typeid : 'PDF', name : 'PDF File', extension : '.pdf', contentType : 'application/pdf', internalid : 17},
'PJPGIMAGE' : {typeid : 'PJPGIMAGE', name : 'PJPEG Image', extension : '.pjpeg', contentType : 'image/pjpeg', internalid : 3},
'PLAINTEXT' : {typeid : 'PLAINTEXT', name : 'Plain Text File', extension : '.txt', contentType : 'text/plain', internalid : 10},
'PNGIMAGE' : {typeid : 'PNGIMAGE', name : 'PNG Image', extension : '.png', contentType : 'image/x-png', internalid : 5},
'POSTSCRIPT' : {typeid : 'POSTSCRIPT', name : 'PostScript File', extension : '.ps', contentType : 'application/postscript', internalid : 21},
'POWERPOINT' : {typeid : 'POWERPOINT', name : 'PowerPoint File', extension : '.ppt', contentType : 'application/vnd.ms-powerpoint', internalid : 23},
'QUICKTIME' : {typeid : 'QUICKTIME', name : 'QuickTime Video', extension : '.mov', contentType : 'video/quicktime', internalid : 28},
'RTF' : {typeid : 'RTF', name : 'RTF File', extension : '.rtf', contentType : 'application/rtf', internalid : 20},
'SMS' : {typeid : 'SMS', name : 'SMS File', extension : '.sms', contentType : 'application/sms', internalid : 18},
'STYLESHEET' : {typeid : 'STYLESHEET', name : 'CSS File', extension : '.css', contentType : 'text/css', internalid : 11},
'TIFFIMAGE' : {typeid : 'TIFFIMAGE', name : 'TIFF Image', extension : '.tiff', contentType : 'image/tiff', internalid : 7},
'VISIO' : {typeid : 'VISIO', name : 'Visio File', extension : '.vsd', contentType : 'application/vnd.visio', internalid : 24},
'WORD' : {typeid : 'WORD', name : 'Word File', extension : '.doc', contentType : 'application/msword', internalid : 19},
'XMLDOC' : {typeid : 'XMLDOC', name : 'XML File', extension : '.xml', contentType : 'text/xml', internalid : 12},
'ZIP' : {typeid : 'ZIP', name : 'Zip File', extension : '.zip', contentType : 'application/zip', internalid : 26},
'AutoCad' : {typeid : 'AUTOCAD', name : 'AutoCad', extension : '.dwg', contentType : 'application/x-autocad', internalid : 34},
'BMP Image' : {typeid : 'BMPIMAGE', name : 'BMP Image', extension : '.bmp', contentType : 'image/x-xbitmap', internalid : 6},
'CSV File' : {typeid : 'CSV', name : 'CSV File', extension : '.csv', contentType : 'text/csv', internalid : 14},
'Excel File' : {typeid : 'EXCEL', name : 'Excel File', extension : '.xls', contentType : 'application/vnd.ms-excel', internalid : 22},
'Flash Animation' : {typeid : 'FLASH', name : 'Flash Animation', extension : '.swf', contentType : 'application/x-shockwave-flash', internalid : 1},
'GIF Image' : {typeid : 'GIFIMAGE', name : 'GIF Image', extension : '.gif', contentType : 'image/gif', internalid : 4},
'GNU Zip File' : {typeid : 'GZIP', name : 'GNU Zip File', extension : '.gz', contentType : 'application/x-gzip-compressed', internalid : 27},
'HTML File' : {typeid : 'HTMLDOC', name : 'HTML File', extension : '.htm', contentType : 'text/html', internalid : 9},
'Icon Image' : {typeid : 'ICON', name : 'Icon Image', extension : '.ico', contentType : 'image/ico', internalid : 8},
'JavaScript File' : {typeid : 'JAVASCRIPT', name : 'JavaScript File', extension : '.js', contentType : 'text/javascript', internalid : 13},
'JPEG Image' : {typeid : 'JPGIMAGE', name : 'JPEG Image', extension : '.jpg', contentType : 'image/jpeg', internalid : 2},
'JSON File' : {typeid : 'JSON', name : 'JSON File', extension : '.json', contentType : 'application/json', internalid : 38},
'Message RFC' : {typeid : 'MESSAGERFC', name : 'Message RFC', extension : '.eml', contentType : 'message/rfc822', internalid : 35},
'MP3 Audio' : {typeid : 'MP3', name : 'MP3 Audio', extension : '.mp3', contentType : 'audio/mpeg', internalid : 30},
'MPEG Video' : {typeid : 'MPEGMOVIE', name : 'MPEG Video', extension : '.mpg', contentType : 'video/mpeg', internalid : 29},
'Project File' : {typeid : 'MSPROJECT', name : 'Project File', extension : '.mpp', contentType : 'application/vnd.ms-project', internalid : 25},
'PDF File' : {typeid : 'PDF', name : 'PDF File', extension : '.pdf', contentType : 'application/pdf', internalid : 17},
'PJPEG Image' : {typeid : 'PJPGIMAGE', name : 'PJPEG Image', extension : '.pjpeg', contentType : 'image/pjpeg', internalid : 3},
'Plain Text File' : {typeid : 'PLAINTEXT', name : 'Plain Text File', extension : '.txt', contentType : 'text/plain', internalid : 10},
'PNG Image' : {typeid : 'PNGIMAGE', name : 'PNG Image', extension : '.png', contentType : 'image/x-png', internalid : 5},
'PostScript File' : {typeid : 'POSTSCRIPT', name : 'PostScript File', extension : '.ps', contentType : 'application/postscript', internalid : 21},
'PowerPoint File' : {typeid : 'POWERPOINT', name : 'PowerPoint File', extension : '.ppt', contentType : 'application/vnd.ms-powerpoint', internalid : 23},
'QuickTime Video' : {typeid : 'QUICKTIME', name : 'QuickTime Video', extension : '.mov', contentType : 'video/quicktime', internalid : 28},
'RTF File' : {typeid : 'RTF', name : 'RTF File', extension : '.rtf', contentType : 'application/rtf', internalid : 20},
'SMS File' : {typeid : 'SMS', name : 'SMS File', extension : '.sms', contentType : 'application/sms', internalid : 18},
'CSS File' : {typeid : 'STYLESHEET', name : 'CSS File', extension : '.css', contentType : 'text/css', internalid : 11},
'TIFF Image' : {typeid : 'TIFFIMAGE', name : 'TIFF Image', extension : '.tiff', contentType : 'image/tiff', internalid : 7},
'Visio File' : {typeid : 'VISIO', name : 'Visio File', extension : '.vsd', contentType : 'application/vnd.visio', internalid : 24},
'Word File' : {typeid : 'WORD', name : 'Word File', extension : '.doc', contentType : 'application/msword', internalid : 19},
'XML File' : {typeid : 'XMLDOC', name : 'XML File', extension : '.xml', contentType : 'text/xml', internalid : 12},
'Zip File' : {typeid : 'ZIP', name : 'Zip File', extension : '.zip', contentType : 'application/zip', internalid : 26},

}

您需要该列表的背景是什么?