RPA.Netsuite

Connect to Netsuite with credentials from environment variables.

Arguments

ArgumentTypeDefault value
accountstr, NoneNone
consumer_keystr, NoneNone
consumer_secretstr, NoneNone
token_keystr, NoneNone
token_secretstr, NoneNone

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 of any type or specified type.

Arguments

ArgumentTypeDefault value
countint100
account_typestrNone
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 all Netsuite Classifications

return:classifications

Get all Netsuite Currencies

return:currencies

Get all a Netsuite Currency by its ID

Arguments

ArgumentTypeDefault value
currency_idstrnull
param currency_id:ID of the currency to get
return:currency

Get all Netsuite Departments

return:departments

Get all Netsuite Locations

return:locations

Get list of vendor bills

Arguments

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

Get list of vendors

Arguments

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

Login to Netsuite with credentials from environment variables

Arguments

ArgumentTypeDefault value
accountstr, NoneNone
emailstr, NoneNone
passwordstr, NoneNone
rolestr, NoneNone
appidstr, NoneNone

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

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

Arguments

ArgumentTypeDefault value
record_typestrNone
internal_idstrNone
external_idstrNone
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

Get all records of given type.

Arguments

ArgumentTypeDefault value
record_typestrnull
param record_type:type of Netsuite record to get
raises ValueError:if record_type is not given
return:records as a list or None

Search Netsuite for a type results.

Arguments

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