RPA.Netsuite
module RPA.Netsuite
class RPA.Netsuite.Netsuite
Netsuite is a library for accessing Netsuite using NetSuite SOAP web service SuiteTalk. The library extends the netsuitesdk library.
More information available at NetSuite SOAP webservice SuiteTalk.
Examples
Robot Framework
Python
variable ROBOT_LIBRARY_DOC_FORMAT
variable ROBOT_LIBRARY_SCOPE
method connect
Connect to Netsuite with credentials from environment variables.
Parameters are not logged into Robot Framework log.
Parameters
- account β parameter or environment variable NS_ACCOUNT
- consumer_key β parameter or environment variable NS_CONSUMER_KEY
- consumer_secret β parameter or environment variable NS_CONSUMER_SECRET
- token_key β parameter or environment variable NS_TOKEN_KEY
- token_secret β parameter or environment variable NS_TOKEN_SECRET
method get_accounts
Get Accounts of any type or specified type.
Parameters
- count β number of Accounts to return, defaults to 100
- account_type β if None returns all account types, example. β_expenseβ, defaults to None
- Returns: accounts
method get_classifications
Get all Netsuite Classifications
- Returns: classifications
method get_currencies
Get all Netsuite Currencies
- Returns: currencies
method get_currency
Get all a Netsuite Currency by its ID
- Parameters: currency_id β ID of the currency to get
- Returns: currency
method get_departments
Get all Netsuite Departments
- Returns: departments
method get_locations
Get all Netsuite Locations
- Returns: locations
method get_vendor_bills
Get list of vendor bills
- Parameters: count β number of vendor bills to return, defaults to 10
- Returns: list of vendor bills
method get_vendors
Get list of vendors
- Parameters: count β number of vendors to return, defaults to 10
- Returns: list of vendors
method login
Login to Netsuite with credentials from environment variables
Parameters are not logged into Robot Framework log.
Parameters
- account β parameter or environment variable NS_ACCOUNT
- email β parameter or environment variable NS_EMAIL
- password β parameter or environment variable NS_PASSWORD
- role β parameter or environment variable NS_ROLE
- appid β parameter or environment variable NS_APPID
method netsuite_get
Get all records of given type and internalId and/or externalId.
Parameters
- record_type β type of Netsuite record to get
- internal_id β internalId of the type, default None
- external_id β external_id of the type, default None
- Raises: ValueError β if record_type is not given
- Returns: records as a list or None
method netsuite_get_all
Get all records of given type.
- Parameters: record_type β type of Netsuite record to get
- Raises: ValueError β if record_type is not given
- Returns: records as a list or None
method netsuite_search
Search Netsuite for value from a type. Default operator is contains.
Parameters
- type_name β search target type name
- search_value β what to search for within type
- operator β name of the operation, defaults to βcontainsβ
- page_size β result items within one page, defaults to 5
- Returns: paginated search object
method netsuite_search_all
Search Netsuite for a type results.
Parameters
- type_name β search target type name
- page_size β result items within one page, defaults to 5
- Returns: paginated search object