Connect

Connect to Netsuite with credentials from environment variables.

Arguments

Argument Type Default value Description
account str Noneparameter or environment variable NS_ACCOUNT
consumer_key str Noneparameter or environment variable NS_CONSUMER_KEY
consumer_secret str Noneparameter or environment variable NS_CONSUMER_SECRET
token_key str Noneparameter or environment variable NS_TOKEN_KEY
token_secret str Noneparameter or environment variable NS_TOKEN_SECRET

Connect to Netsuite with credentials from environment variables.

Parameters are not logged into Robot Framework log.

param account:parameter or environment variable NS_ACCOUNT
param consumer_key:
 parameter or environment variable NS_CONSUMER_KEY
param consumer_secret:
 parameter or environment variable NS_CONSUMER_SECRET
param token_key:
 parameter or environment variable NS_TOKEN_KEY
param token_secret:
 parameter or environment variable NS_TOKEN_SECRET

Get Accounts

Get Accounts of any type or specified type.

Arguments

Argument Type Default value Description
count int 100number of Accounts to return, defaults to 100
account_type str Noneif None returns all account types, example. "_expense", defaults to None
param count:number of Accounts to return, defaults to 100
param account_type:
 if None returns all account types, example. "_expense", defaults to None
return:accounts

Get Classifications

Get all Netsuite Classifications

return:classifications

Get Currencies

Get all Netsuite Currencies

return:currencies

Get Currency

Get all a Netsuite Currency by its ID

Arguments

Argument Type Default value Description
currency_id strID of the currency to get
param currency_id:
 ID of the currency to get
return:currency

Get Departments

Get all Netsuite Departments

return:departments

Get Locations

Get all Netsuite Locations

return:locations

Get Vendor Bills

Get list of vendor bills

Arguments

Argument Type Default value Description
count int 10number of vendor bills to return, defaults to 10
param count:number of vendor bills to return, defaults to 10
return:list of vendor bills

Get Vendors

Get list of vendors

Arguments

Argument Type Default value Description
count int 10number of vendors to return, defaults to 10
param count:number of vendors to return, defaults to 10
return:list of vendors

Login

Login to Netsuite with credentials from environment variables

Arguments

Argument Type Default value Description
account str Noneparameter or environment variable NS_ACCOUNT
email str Noneparameter or environment variable NS_EMAIL
password str Noneparameter or environment variable NS_PASSWORD
role str Noneparameter or environment variable NS_ROLE
appid str Noneparameter or environment variable NS_APPID

Parameters are not logged into Robot Framework log.

param account:parameter or environment variable NS_ACCOUNT
param email:parameter or environment variable NS_EMAIL
param password:parameter or environment variable NS_PASSWORD
param role:parameter or environment variable NS_ROLE
param appid:parameter or environment variable NS_APPID

Netsuite Get

Get all records of given type and internalId and/or externalId.

Arguments

Argument Type Default value Description
record_type str Nonetype of Netsuite record to get
internal_id str NoneinternalId of the type, default None
external_id str Noneexternal_id of the type, default None
param record_type:
 type of Netsuite record to get
param internal_id:
 internalId of the type, default None
param external_id:
 external_id of the type, default None
raises ValueError:
 if record_type is not given
return:records as a list or None

Netsuite Get All

Get all records of given type.

Arguments

Argument Type Default value Description
record_type strtype of Netsuite record to get
param record_type:
 type of Netsuite record to get
raises ValueError:
 if record_type is not given
return:records as a list or None

Netsuite Search All

Search Netsuite for a type results.

Arguments

Argument Type Default value Description
type_name strsearch target type name
page_size int 20result items within one page, defaults to 5
param type_name:
 search target type name
param page_size:
 result items within one page, defaults to 5
return:paginated search object