RPA.Netsuite

Connect to Netsuite with credentials from environment variables.

Arguments

ArgumentTypeDefault valueDescription
accountstr, NoneNoneparameter or environment variable NS_ACCOUNT
consumer_keystr, NoneNoneparameter or environment variable NS_CONSUMER_KEY
consumer_secretstr, NoneNoneparameter or environment variable NS_CONSUMER_SECRET
token_keystr, NoneNoneparameter or environment variable NS_TOKEN_KEY
token_secretstr, NoneNoneparameter or environment variable NS_TOKEN_SECRET

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 valueDescription
countint100number of Accounts to return, defaults to 100
account_typestrNoneif 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 all Netsuite Classifications

return:classifications

Get all Netsuite Currencies

return:currencies

Get all a Netsuite Currency by its ID

Arguments

ArgumentTypeDefault valueDescription
currency_idstrnullID of the currency to get
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 valueDescription
countint10number 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 list of vendors

Arguments

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

Login to Netsuite with credentials from environment variables

Arguments

ArgumentTypeDefault valueDescription
accountstr, NoneNoneparameter or environment variable NS_ACCOUNT
emailstr, NoneNoneparameter or environment variable NS_EMAIL
passwordstr, NoneNoneparameter or environment variable NS_PASSWORD
rolestr, NoneNoneparameter or environment variable NS_ROLE
appidstr, NoneNoneparameter 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

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

Arguments

ArgumentTypeDefault valueDescription
record_typestrNonetype of Netsuite record to get
internal_idstrNoneinternalId of the type, default None
external_idstrNoneexternal_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

Get all records of given type.

Arguments

ArgumentTypeDefault valueDescription
record_typestrnulltype 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

Search Netsuite for a type results.

Arguments

ArgumentTypeDefault valueDescription
type_namestrnullsearch target type name
page_sizeint20result 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