| Namespace | http://www.mulesoft.org/schema/mule/netsuite |
|---|---|
| Schema Location | http://www.mulesoft.org/schema/mule/netsuite/current/mule-netsuite.xsd (View Schema) |
| Schema Version | 1.0 |
| Minimum Mule Version | 3.2 |
The NetSuite cloud connector facade, based on a NetSuiteClient
| Configuration | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Configure an instance of this module
| |||||||||||
| Message Processors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Answers the server time, resulting in more accurate and reliable sync'ing of data than using
using local client time.
| |||||||||||
Creates a new file record.
| |||||||||||
Used to add one or more records into the system
| |||||||||||
Creates a new record.
| |||||||||||
Searches for all records that match the given filtering expression, asynchronously.
| |||||||||||
Attaches a source record - that is, the attachment - to another destination one,
optionally specifying a contact for the
attachment.
| |||||||||||
Answers the status of an asynchronous Web services submission.
| |||||||||||
Used to delete one or more records in the system.
| |||||||||||
Deletes a record.
| |||||||||||
Detaches a source record - that is, the attachment - from a destination record.
| |||||||||||
Answers the first records that match the given filtering expression.
| |||||||||||
Answers all records that match the given filtering expression.
| |||||||||||
Answers the the first result of an asynchronous asyncFind.
| |||||||||||
Answers the results of an asynchronous web services submission.
| |||||||||||
Answers the list of budget exchange rates
Example:
| |||||||||||
Answers the list of consolidated exchange rates
Example:
| |||||||||||
Answers the ids of available customizations for a given record type.
| |||||||||||
Answers a list of deleted records of a given record type that match a given date expression.
| |||||||||||
Answers the availability for a given record reference.
| |||||||||||
Answers a record given its id
Example:
| |||||||||||
Answers all the record of a given type
Example:
| |||||||||||
Retrieves a list of existing saved searches for the given record type.
| |||||||||||
Populates fields on transaction line items with values from a related record,
in a similar way empty text boxes are prepopulated within the Netsuite UI
Example:
| |||||||||||
Answers all records of a given type for a saved search, given its search id.
| |||||||||||
Sets a new invitation status for a given event.
| |||||||||||
Used to update one or more existing records in the system by providing new values for the fields to
be updated for each record.
| |||||||||||
Updates an existing record.
| |||||||||||
To use the this module within a flow the namespace to the module must be included. The resulting flow will look similar to the following:
<mule xmlns="http://www.mulesoft.org/schema/mule/core"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:netsuite="http://www.mulesoft.org/schema/mule/netsuite"
xsi:schemaLocation="
http://www.mulesoft.org/schema/mule/core
http://www.mulesoft.org/schema/mule/core/current/mule.xsd
http://www.mulesoft.org/schema/mule/netsuite
http://www.mulesoft.org/schema/mule/netsuite/current/mule-netsuite.xsd">
<!-- here goes your flows and configuration elements -->
</mule>
This module is configured using the config element. This element must be placed outside of your flows and at the root of your Mule application. You can create as many configurations as you deem necessary as long as each carries its own name.
Each message processor, message source or transformer carries a config-ref attribute that allows the invoker to specify which configuration to use.
| Attributes | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Type | Name | Default Value | Description | Optional. Give a name to this configuration so it can be later referenced. | |||||||
| SuiteTalk -NetSuite WebService - account id. | |||||||||||
| The login email of both NetSuite UI and SuiteTalk | |||||||||||
| https://webservices.netsuite.com/services/NetSuitePort_2010_2 | Optional. Service endpoint
|
||||||||||
| The login password of both the NetSuite UI and SuiteTalk | |||||||||||
| The id of the role used to login in SuiteTalk, which determines the Processor privileges | |||||||||||
Answers the server time, resulting in more accurate and reliable sync'ing of data than using using local client time. Example:
INCLUDE_ERROR
| Name | Default Value | Description |
|---|---|---|
| Optional. Specify which configuration to use. |
Creates a new file record. This Processor is similar to addRecord, but is customized for simplifying local content passing.
INCLUDE_ERROR
| Name | Default Value | Description |
|---|---|---|
| Optional. Specify which configuration to use. | ||
| The content of the file record to add. It can be of type String, byte array, File or InputStream. If it is an input stream, this Processors also closes it. | ||
| The name of the remote file | ||
| The id of the folder record where to add this file | ||
| INTERNAL | Optional. The id type of the folder record |
| Payload Class | Description |
|---|---|
| IOException |
Used to add one or more records into the system
INCLUDE_ERROR
INCLUDE_ERROR
| Name | Default Value | Description |
|---|---|---|
| Optional. Specify which configuration to use. | ||
| The type of record to add |
WriteResponseList with the server response
| Payload Class | Description |
|---|---|
| Exception |
Creates a new record. Example:
INCLUDE_ERROR
INCLUDE_ERROR
| Name | Default Value | Description |
|---|---|---|
| Optional. Specify which configuration to use. | ||
| The type of record to add |
Searches for all records that match the given filtering expression, asynchronously. If no expression is specified, all records of the given type are retrieved Filtering expressions support both basic and joined syntax, that is, using in the filters attributes of both the target entity and the target entity associations. Advanced search is not supported. Search expressions are in the form operator(attribute, arguments...) for basic search, and operator(join.attribute, arguments...) for joined search, where operator is any of the string, long, double, and text operators supported by SuiteTalk - MultiSelect operators are not supported - plus the isTrue/isFalse boolean operators, and arguments are zero up to three operands that depend on the operator used. Examples:
INCLUDE_ERROR
| Name | Default Value | Description |
|---|---|---|
| Optional. Specify which configuration to use. | ||
| The type of record to search | ||
| Optional. The filtering expression, in the form operator(attribute, arguments...) for basic search, and operator(join.attribute, arguments...) for joined search, where operator is any of the string, long, double, and text operators supported by SuiteTalk - MultiSelect operators are not supported - plus the isTrue/isFalse boolean operators, and arguments are zero up to three operands that depend on the operator used. Multiple filters can be combined using multiple predicates separated by commas. |
| Payload Class | Description |
|---|---|
| Exception |
Attaches a source record - that is, the attachment - to another destination one, optionally specifying a contact for the attachment. Not all record type are supported as source, destination or contact. Please consult NetSuite documentation. Example:
INCLUDE_ERROR
| Name | Default Value | Description |
|---|---|---|
| Optional. Specify which configuration to use. | ||
| The type of the target record to be attached | ||
| The id of the target record to be attached | ||
| INTERNAL | Optional. The id type of the record to be attached | |
| The type of the record to be attached to | ||
| The id of the record to be attached to | ||
| INTERNAL | Optional. The id type of the record to be attached to | |
| Optional. The record type of the optional contact record | ||
| Optional. The id of the optional contact record | ||
| INTERNAL | Optional. The id type of the optional contact record |
Answers the status of an asynchronous Web services submission. When a jobId is submitted, the status, percent complete, and estimated remaining duration are returned. Example:
INCLUDE_ERROR
| Name | Default Value | Description |
|---|---|---|
| Optional. Specify which configuration to use. | ||
| The id of the job whose status to check |
Used to delete one or more records in the system. The records to be deleted are identified through the provided unique identifiers.
INCLUDE_ERROR
| Name | Default Value | Description |
|---|---|---|
| Optional. Specify which configuration to use. |
WriteResponseList with the server response
| Payload Class | Description |
|---|---|
| Exception |
Deletes a record. Not all records can be deleted. Please consult NetSuite documentation Example:
INCLUDE_ERROR
| Name | Default Value | Description |
|---|---|---|
| Optional. Specify which configuration to use. | ||
| The type of the record to delete | ||
| The id of the record to delete | ||
| INTERNAL | Optional. The type of id of the record to delete |
Detaches a source record - that is, the attachment - from a destination record. Example:
INCLUDE_ERROR
| Name | Default Value | Description |
|---|---|---|
| Optional. Specify which configuration to use. | ||
| The type of the target record to be detached | ||
| The id of the target record to be detached | ||
| INTERNAL | Optional. The id type of the record to be detached | |
| The type of the record to be detached to | ||
| The id of the record to be detached to | ||
| INTERNAL | Optional. The id type of the record to be detached to |
Answers the first records that match the given filtering expression. If no expression is specified, the empty expression is used, which retrieves all records of the given type. Throws a NoSuchElementException if no record can be retrieved. Filtering expressions support both basic and joined syntax, that is, using in the filters attributes of both the target entity and the target entity associations. Advanced search is not supported. Search expressions are in the form operator(attribute, arguments...) for basic search, and operator(join.attribute, arguments...) for joined search, where operator is any of the string, long, double, and text operators supported by SuiteTalk - MultiSelect operators are not supported - plus the isTrue/isFalse boolean operators, and arguments are zero up to three operands that depend on the operator used. Examples:
INCLUDE_ERROR
| Name | Default Value | Description |
|---|---|---|
| Optional. Specify which configuration to use. | ||
| The type of record to search | ||
| Optional. The filtering expression Multiple filters can be combined using multiple predicates separated by commas. |
Answers all records that match the given filtering expression. If no expression is specified, the empty expression is used, which retrieves all records of the given type. Filtering expressions support both basic and joined syntax, that is, using in the filters attributes of both the target entity and the target entity associations. Advanced search is not supported. Search expressions are in the form operator(attribute, arguments...) for basic search, and operator(join.attribute, arguments...) for joined search, where operator is any of the string, long, double, and text operators supported by SuiteTalk - MultiSelect operators are not supported - plus the isTrue/isFalse boolean operators, and arguments are zero up to three operands that depend on the operator used.
INCLUDE_ERROR
| Name | Default Value | Description |
|---|---|---|
| Optional. Specify which configuration to use. | ||
| The type of record to search | ||
| Optional. The filtering expression Multiple filters can be combined using multiple predicates separated by commas. |
Answers the the first result of an asynchronous asyncFind. Throws a NoSuchElement exception if there are no results. This Processor can be executed Processor up to 20 times within a 30 day time period to retrieve the results of an asynchronous job. Example:
INCLUDE_ERROR
| Name | Default Value | Description |
|---|---|---|
| Optional. Specify which configuration to use. | ||
| The id of the job |
Answers the results of an asynchronous web services submission. This Processor can be executed Processor up to 20 times within a 30 day time period to retrieve the results of an asynchronous job. Example:
INCLUDE_ERROR
| Name | Default Value | Description |
|---|---|---|
| Optional. Specify which configuration to use. | ||
| The id of the job |
Answers the list of budget exchange rates Example:
INCLUDE_ERROR
| Name | Default Value | Description |
|---|---|---|
| Optional. Specify which configuration to use. | ||
| The id of the period | ||
| INTERNAL | Optional. The period id type | |
| The id of the staring subsidiary | ||
| INTERNAL | Optional. The starting subsidiary id type | |
| Optional. The the id of the optional ending subsidiary | ||
| INTERNAL | Optional. The id type of the optional ending subsidiary |
Answers the list of consolidated exchange rates Example:
INCLUDE_ERROR
| Name | Default Value | Description |
|---|---|---|
| Optional. Specify which configuration to use. | ||
| The id of the period | ||
| INTERNAL | Optional. The period id type | |
| The id of the staring subsidiary | ||
| INTERNAL | Optional. The starting subsidiary id type | |
| Optional. The the id of the optional ending subsidiary | ||
| INTERNAL | Optional. The id type of the optional ending subsidiary |
Answers the ids of available customizations for a given record type. Example:
INCLUDE_ERROR
| Name | Default Value | Description |
|---|---|---|
| Optional. Specify which configuration to use. | ||
| The target record type | ||
| false | Optional. If inactive customizations should also be returned |
Answers a list of deleted records of a given record type that match a given date expression. This Processors accepts two different date expression passing styles: string oriented, and object oriented. If whenExpression is specified, it is parsed and used as date expression. Otherwise, a date expression is build from date1, date2 and operator parameters. The first style is more appropriate when the date expression can be harcdoded, while the second style is better when client code already has date objects. However, predefined search values like thisWeek, tomorrow or today can only be used with the first, string oriented, style. String oriented date expressions are in the form Processor( searchValue, arguments...), where Processor is any of the NetSuite supported date Processors, arguments are one or two operands for the given operator, and searchValue is some of the supported predefined search value as defined by NetSuite or any of the following expressions: isoDate( anIsoDate ), isoDateRante( anIsoDate, anotherIsoDate ) , dateTime( aQuotedDateTime, aQuoatedJavaDateFormat ), dateTimeRange( aQuotedDateTime, anotherQuotedDateTime, aQuoatedJavaDateFormat ). Supported predefined search values are: today, thisWeek, thisBusinessWeek, thisMonth,thisYear, yesterday, twoDaysAgo, lastWeek, lastMonth, threeMonthAgo,tomorrow, nextMonth , nextWeek Examples using both string and object oriented styles:
INCLUDE_ERROR
| Name | Default Value | Description |
|---|---|---|
| Optional. Specify which configuration to use. | ||
| The type of the target deleted record to retrieve | ||
| Optional. A predicate-style date filtering expression | ||
| Optional. The first date to use | ||
| Optional. The second date to use | ||
| Optional. The date operator |
Answers the availability for a given record reference. If the Multi-Location Inventory feature is enabled, this Processor returns results for all locations. For locations that do not have any items available, only location IDs and names are listed in results. Example:
INCLUDE_ERROR
| Name | Default Value | Description |
|---|---|---|
| Optional. Specify which configuration to use. | ||
| The target record type | ||
| The target record id | ||
| INTERNAL | Optional. The id type of the given record id | |
| Optional. An optional modified since date. If set, only items with quantity available changes recorded as of the specified date are returned. |
Answers a record given its id Example:
INCLUDE_ERROR
| Name | Default Value | Description |
|---|---|---|
| Optional. Specify which configuration to use. | ||
| The target record type | ||
| The target record id | ||
| INTERNAL | Optional. The id type of the given record id |
Answers all the record of a given type Example:
INCLUDE_ERROR
| Name | Default Value | Description |
|---|---|---|
| Optional. Specify which configuration to use. | ||
| The target record type |
Retrieves a list of existing saved searches for the given record type. Example:
INCLUDE_ERROR
| Name | Default Value | Description |
|---|---|---|
| Optional. Specify which configuration to use. | ||
| The target record type |
Populates fields on transaction line items with values from a related record, in a similar way empty text boxes are prepopulated within the Netsuite UI Example:
INCLUDE_ERROR
| Name | Default Value | Description |
|---|---|---|
| Optional. Specify which configuration to use. | ||
| The type of record whose defaults values are used to populate the target record | ||
| The target record type | ||
| The target record id | ||
| INTERNAL | Optional. The id type of the given record id |
Answers all records of a given type for a saved search, given its search id. Examples:
INCLUDE_ERROR
| Name | Default Value | Description |
|---|---|---|
| Optional. Specify which configuration to use. | ||
| The type of record to search | ||
| The id of the save search |
Sets a new invitation status for a given event. Example: Example:
INCLUDE_ERROR
| Name | Default Value | Description |
|---|---|---|
| Optional. Specify which configuration to use. | ||
| The target event id | ||
| INTERNAL | Optional. The id type of the given eventId | |
| The new status to set |
Used to update one or more existing records in the system by providing new values for the fields to be updated for each record. The records to be updated are identified through the provided unique identifiers.
INCLUDE_ERROR
| Name | Default Value | Description |
|---|---|---|
| Optional. Specify which configuration to use. | ||
| The type of record to add |
WriteResponseList with the server response
| Payload Class | Description |
|---|---|
| Exception |
Updates an existing record. Example:
INCLUDE_ERROR
INCLUDE_ERROR
| Name | Default Value | Description |
|---|---|---|
| Optional. Specify which configuration to use. | ||
| The target record type to update | ||
| The target record id | ||
| INTERNAL | Optional. The id type of the given record id |
| Payload Class | Description |
|---|---|
| Exception |