RPA.Netsuite
Connect to Netsuite with credentials from environment variables.
Arguments
Argument | Type | Default value |
---|---|---|
account | str, None | None |
consumer_key | str, None | None |
consumer_secret | str, None | None |
token_key | str, None | None |
token_secret | str, None | None |
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
Argument | Type | Default value |
---|---|---|
count | int | 100 |
account_type | str | 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
Argument | Type | Default value |
---|---|---|
currency_id | str | null |
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
Argument | Type | Default value |
---|---|---|
count | int | 10 |
param count: | number of vendor bills to return, defaults to 10 |
---|---|
return: | list of vendor bills |
Get list of vendors
Arguments
Argument | Type | Default value |
---|---|---|
count | int | 10 |
param count: | number of vendors to return, defaults to 10 |
---|---|
return: | list of vendors |
Login to Netsuite with credentials from environment variables
Arguments
Argument | Type | Default value |
---|---|---|
account | str, None | None |
str, None | None | |
password | str, None | None |
role | str, None | None |
appid | str, None | None |
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
Argument | Type | Default value |
---|---|---|
record_type | str | None |
internal_id | str | None |
external_id | str | 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
Argument | Type | Default value |
---|---|---|
record_type | str | null |
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 value from a type. Default operator is contains.
Arguments
Argument | Type | Default value |
---|---|---|
type_name | str | null |
search_value | str | null |
operator | str | contains |
page_size | int | 5 |
param type_name: | search target type name |
---|---|
param search_value: | what to search for within type |
param operator: | name of the operation, defaults to "contains" |
param page_size: | result items within one page, defaults to 5 |
return: | paginated search object |
Search Netsuite for a type results.
Arguments
Argument | Type | Default value |
---|---|---|
type_name | str | null |
page_size | int | 20 |
param type_name: | search target type name |
---|---|
param page_size: | result items within one page, defaults to 5 |
return: | paginated search object |