The following table describes the supported NetSuite data types and their mapping to the Python data types. The type codes returned in the description cursor attribute can be used in the addtypecast() cursor method.
| NetSuite data type | Type code | Python data type |
|---|---|---|
|
Boolean |
3004 |
int |
|
Check_box |
3011 |
int |
|
Int |
3012 |
int |
|
Integer_number |
3012 |
int |
|
Long |
3013 |
int |
|
Date |
3006 |
datetime.date |
|
Datetime |
3007 |
datetime.datetime |
|
Time |
3018 |
datetime.time |
|
Time_of_day |
3018 |
datetime.time |
|
Decimal_number |
3008 |
float |
|
Double |
3009 |
float |
|
Currency |
3017 |
str |
|
Document |
3017 |
str |
|
E-mail_address |
3017 |
str |
|
Free-form_text |
3017 |
str |
|
Hyperlink |
3017 |
str |
|
Inline_HTML |
3017 |
str |
|
List/Record |
3017 |
str |
|
Multiple_select |
3017 |
str |
|
Password |
3017 |
str |
|
Percent |
3017 |
str |
|
Phone_number |
3017 |
str |
|
RecordRef |
3017 |
str |
|
Rich_text |
3017 |
str |
|
String |
3017 |
str |
|
Text_area |
3017 |
str |