Connect

Arguments

  • account: str = None
  • consumer_key: str = None
  • consumer_secret: str = None
  • token_key: str = None
  • token_secret: str = None

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

Arguments

  • count: int = 100
  • account_type: str = None

Get Accounts of any type or specified type.

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

Arguments

Get all Netsuite Classifications

return:classifications

Get Currencies

Arguments

Get all Netsuite Currencies

return:currencies

Get Currency

Arguments

  • currency_id: str

Get all a Netsuite Currency by its ID

param currency_id:
 ID of the currency to get
return:currency

Get Departments

Arguments

Get all Netsuite Departments

return:departments

Get Locations

Arguments

Get all Netsuite Locations

return:locations

Get Vendor Bills

Arguments

  • count: int = 10

Get list of vendor bills

param count:number of vendor bills to return, defaults to 10
return:list of vendor bills

Get Vendors

Arguments

  • count: int = 10

Get list of vendors

param count:number of vendors to return, defaults to 10
return:list of vendors

Login

Arguments

  • account: str = None
  • email: str = None
  • password: str = None
  • role: str = None
  • appid: str = None

Login to Netsuite with credentials from environment variables

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

Arguments

  • record_type: str = None
  • internal_id: str = None
  • external_id: str = None

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

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

Arguments

  • record_type: str

Get all records of given type.

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

Arguments

  • type_name: str
  • page_size: int = 20

Search Netsuite for a type results.

param type_name:
 search target type name
param page_size:
 result items within one page, defaults to 5
return:paginated search object