@MetaDataScope(value=DefaultCategory.class) @Connector(name="netsuite", friendlyName="NetSuite", schemaVersion="3.0", minMuleVersion="3.5") @ReconnectOn(exceptions=InvalidSessionFault.class) @RequiresEnterpriseLicense(allowEval=true) public class NetSuiteConnector extends Object
Constructor and Description |
---|
NetSuiteConnector() |
Modifier and Type | Method and Description |
---|---|
RecordRef |
addFile(RecordRef folderId,
Map<String,Object> attributes,
Object content,
String fileName,
Preferences preferences)
Creates a new file record.
|
List<WriteResponse> |
addList(String recordType,
List<Map<String,Object>> records,
Preferences preferences)
Used to add one or more records into the system.
|
BaseRef |
addRecord(String recordType,
Map<String,Object> attributes,
Preferences preferences)
Creates a new record.
|
List<WriteResponse> |
addRecordObjects(List<? extends Record> records)
Creates new records.
|
AsyncStatusResult |
asyncAddList(String recordType,
List<Map<String,Object>> recordsAttributes,
Preferences preferences)
An asynchronous request equivalent to
addList(java.lang.String, java.util.List<java.util.Map<java.lang.String, java.lang.Object>>, com.netsuite.webservices.platform.messages.Preferences) . |
AsyncStatusResult |
asyncDeleteList(List<BaseRefType> records,
Preferences preferences)
An asynchronous request equivalent to
deleteList(List, Preferences) . |
AsyncStatusResult |
asyncDeleteListRecords(List<RecordRef> records,
Preferences preferences)
An asynchronous request equivalent to
deleteRecordsList(List, Preferences) . |
AsyncStatusResult |
asyncGetList(List<BaseRefType> records,
Preferences preferences)
An asynchronous request equivalent to
getList(List, Preferences) . |
AsyncStatusResult |
asyncGetListRecords(List<RecordRef> records,
Preferences preferences)
An asynchronous request equivalent to
getList(List, Preferences) . |
AsyncStatusResult |
asyncInitializeList(List<InitializeRecord> initializeRecord,
Preferences preferences)
An asynchronous request equivalent to
initializeList(List, Preferences) . |
AsyncStatusResult |
asyncSearch(String searchRecord,
SearchRecord criteria,
boolean bodyFieldsOnly,
boolean returnSearchColumns,
Integer pageSize)
An asynchronous request equivalent to
#search(String, SearchRecord, boolean, boolean, Integer) |
AsyncStatusResult |
asyncUpdateList(String recordType,
List<Map<String,Object>> recordsAttributes,
Preferences preferences)
An asynchronous request equivalent to
updateList(String, List, Preferences) . |
AsyncStatusResult |
asyncUpsertList(String recordType,
List<Map<String,Object>> recordsAttributes,
Preferences preferences)
An asynchronous request equivalent to
upsertList(String, List, Preferences) . |
WriteResponse |
attachRecord(RecordRef source,
RecordRef destination,
RecordRef contact,
RecordRef role,
Preferences preferences)
Attaches a source or contact record - that is, the attachment - to another destination one
|
SessionResponse |
changeEmail(String newEmail,
Boolean justThisAccount)
Used to change the email address for the account.
|
SessionResponse |
changePassword(String newPassword,
Boolean justThisAccount)
Used to change the password for the account.
|
AsyncStatusResult |
checkAsyncStatus(String jobId,
Preferences preferences)
This operation checks whether a particular asynchronous job has finished processing or not.
|
WriteResponse |
delete(BaseRefType baseRef,
Preferences preferences)
Deletes a record.
|
List<WriteResponse> |
deleteList(List<BaseRefType> records,
Preferences preferences)
Used to delete one or more records in the system.
|
WriteResponse |
deleteRecord(RecordRef recordRef,
Preferences preferences)
Deletes a record.
|
List<WriteResponse> |
deleteRecordsList(List<RecordRef> records,
Preferences preferences)
Used to delete one or more records in the system.
|
WriteResponse |
detachRecord(RecordRef source,
RecordRef destination,
Preferences preferences)
Detaches a source record - that is, the attachment - from a destination record.
|
Map<String,Object> |
get(BaseRefType baseRef,
Preferences preferences)
This is used to retrieve a record by providing the unique id that identifies that record.
|
AsyncResult |
getAsyncResult(String jobId,
Integer pageIndex,
Preferences preferences)
This operation returns the result of a job given that it has finished processing.
|
GetBudgetExchangeRateResult |
getBudgetExchangeRates(RecordRef period,
RecordRef fromSubsidiary,
RecordRef toSubsidiary,
Preferences preferences)
Returns a list of budget exchange rates for a give period.
|
GetConsolidatedExchangeRateResult |
getConsolidatedExchangeRates(RecordRef period,
RecordRef fromSubsidiary,
RecordRef toSubsidiary,
Preferences preferences)
Returns a list of consolidated exchange rates for a given period.
|
GetCurrencyRateResult |
getCurrentRate(CurrencyRateFilter rateFilter,
Preferences preferences)
Use this operation to get the exchange rate between two currencies.
|
GetCustomizationIdResult |
getCustomizationIds(GetCustomizationType type,
boolean includeInactives,
Preferences preferences)
Returns the IDs of available customizations for a given customization type.
|
Map<String,Object> |
getCustomRecord(String type,
String internalId,
String externalId,
Preferences preferences)
This is used to retrieve a custom record by providing the unique id that identifies that record.
|
GetDataCenterUrlsResult |
getDataCenterUrls(String accountId)
Returns the accessible data-center URLs for the accountId specified.
|
GetDeletedResult |
getDeletedRecords(RecordTypeEnum type,
Integer pageIndex,
SearchDateField deletedDate,
Preferences preferences)
Returns a list of deleted records for the given record type and date period.
|
GetItemAvailabilityResult |
getItemAvailability(RecordRef record,
Date ifModifiedSince,
Preferences preferences)
Returns the availability for a given item record reference.
|
List<ReadResponse> |
getList(List<? extends BaseRef> references,
Preferences preferences)
This operation is used to retrieve a list of objects referenced in the list of BaseRef object.
|
GetPostingTransactionSummaryResult |
getPostingTransactionSummary(PostingTransactionSummaryField fields,
PostingTransactionSummaryFilter filters,
Integer pageIndex,
Preferences preferences)
Used to retrieve a summary of the actual data in an Account.
|
Map<String,Object> |
getRecord(String type,
String internalId,
String externalId,
Preferences preferences)
This is used to retrieve a record by providing the unique id that identifies that record.
|
GetAllResult |
getRecords(GetAllRecordType type,
Preferences preferences)
This operation is used to retrieve a list of all records of the specified type.
|
GetSavedSearchResult |
getSavedSearch(SearchRecordType type)
Retrieves a list of existing saved searches for the given record type.
|
GetSelectValueResult |
getSelectValue(int page,
GetSelectValueFieldDescription fieldDescriptor,
Preferences preferences)
Used to retrieve valid values for a given recordRef field where the referenced record type is not yet exposed in the Web services API or when the logged in role does not
have access to the instances of the record type.
|
Date |
getServerTime()
Returns the server time.
|
NetSuiteConnectionStrategy |
getStrategy() |
void |
init() |
ReadResponse |
initialize(InitializeRecord record,
Preferences preferences)
Populates fields on transaction line items with values from a related record, in a similar way empty text boxes are pre-populated within the NetSuite UI.
|
List<ReadResponse> |
initializeList(List<InitializeRecord> initializeRecord,
Preferences preferences)
Used to emulate the UI workflow by pre-populating fields on transaction line items with values from a related record.
|
SessionResponse |
mapSso(String userAccount,
String userPartnerId,
String authenticationToken,
String userEmail,
String userPassword,
RecordRef userRole)
Used to automate the mapping between external applications credentials and NetSuite’s credentials for a user.
|
protected void |
registerTransformers() |
org.mule.streaming.ProviderAwarePagingDelegate<Map<String,Object>,NetSuiteConnector> |
search(String searchRecord,
SearchRecord criteria,
boolean bodyFieldsOnly,
boolean returnSearchColumns,
org.mule.streaming.PagingConfiguration pagingConfiguration)
The search operation is used to execute a search on a specific record type based on a set of criteria.
|
void |
setRegistry(org.mule.api.registry.MuleRegistry registry) |
void |
setStrategy(NetSuiteConnectionStrategy strategy) |
WriteResponse |
updateInviteeStatus(RecordRef eventId,
CalendarEventAttendeeResponseEnum status,
Preferences preferences)
Sets a new invitation status for a given event.
|
List<WriteResponse> |
updateInviteeStatusList(List<UpdateInviteeStatusReference> inviteeStatusList,
Preferences preferences)
Sets multiple new invitation status for a given event.
|
List<WriteResponse> |
updateList(String recordType,
List<Map<String,Object>> records,
Preferences preferences)
Used to update one or more existing records in the system by providing new values for the fields to be updated for each record.
|
BaseRef |
updateRecord(String recordType,
Map<String,Object> attributes,
Preferences preferences)
Updates an existing record.
|
List<WriteResponse> |
updateRecordsList(List<? extends Record> records,
Preferences preferences)
Used to update one or more existing records in the system by providing a list of records.
|
List<WriteResponse> |
upsertList(String recordType,
List<Map<String,Object>> records,
Preferences preferences)
The upsertList operation is used to add or update one or more instances of a record type in NetSuite.
|
BaseRef |
upsertRecord(String recordType,
Map<String,Object> attributes,
Preferences preferences)
The upsert operation is used to add a new instance or to update an instance of a record in NetSuite.
|
@Processor public WriteResponse attachRecord(@Default(value="#[payload]") RecordRef source, RecordRef destination, @Optional RecordRef contact, @Optional RecordRef role, @Placement(group="Request Preferences")@Optional Preferences preferences) throws NetSuiteException
Attaches a source or contact record - that is, the attachment - to another destination one
Not all record types are supported as source, destination or contact. Please consult NetSuite documentation.
source
- An instance of RecordRef
destination
- An instance of RecordRef
contact
- An instance of RecordRef
role
- An instance of RecordRef
preferences
- Preferences for the request.WriteResponse
NetSuiteException
- This could be one of the following: ExceededRecordCountFault
,
InvalidCredentialsFault
, UnexpectedErrorFault
,
ExceededRequestSizeFault
, ExceededRequestLimitFault
,
ExceededUsageLimitFault
, InvalidSessionFault
@Processor public WriteResponse deleteRecord(@Default(value="#[payload]") RecordRef recordRef, @Placement(group="Request Preferences")@Optional Preferences preferences) throws NetSuiteException
Deletes a record. Not all records can be deleted. Please consult NetSuite documentation
recordRef
- An instance of RecordRef
preferences
- Preferences for the request.NetSuiteException
- This could be one of the following: ExceededRecordCountFault
,
InvalidCredentialsFault
, UnexpectedErrorFault
,
ExceededRequestSizeFault
, ExceededRequestLimitFault
,
ExceededUsageLimitFault
, InvalidSessionFault
@Processor public WriteResponse delete(@Default(value="#[payload]") BaseRefType baseRef, @Placement(group="Request Preferences")@Optional Preferences preferences) throws NetSuiteException
Deletes a record. Not all records can be deleted. Please consult NetSuite documentation
baseRef
- An instance of BaseRefType
.preferences
- Preferences for the request.WriteResponse
NetSuiteException
- This could be one of the following: ExceededRecordCountFault
,
InvalidCredentialsFault
, UnexpectedErrorFault
,
ExceededRequestSizeFault
, ExceededRequestLimitFault
,
ExceededUsageLimitFault
, InvalidSessionFault
@Processor public WriteResponse detachRecord(@Default(value="#[payload]") RecordRef source, RecordRef destination, @Placement(group="Request Preferences")@Optional Preferences preferences) throws NetSuiteException
Detaches a source record - that is, the attachment - from a destination record.
source
- An instance of RecordRef
destination
- An instance of RecordRef
preferences
- Preferences for the request.NetSuiteException
- This could be one of the following: ExceededRecordCountFault
,
InvalidCredentialsFault
, UnexpectedErrorFault
,
ExceededRequestSizeFault
, ExceededRequestLimitFault
,
ExceededUsageLimitFault
, InvalidSessionFault
@Processor public GetBudgetExchangeRateResult getBudgetExchangeRates(@Default(value="#[payload]") RecordRef period, @Optional RecordRef fromSubsidiary, @Optional RecordRef toSubsidiary, @Placement(group="Request Preferences")@Optional Preferences preferences) throws NetSuiteException
Returns a list of budget exchange rates for a give period.
period
- References an existing period.fromSubsidiary
- References the receiving subsidiary.toSubsidiary
- References the originating subsidiary.preferences
- Preferences for the request.GetBudgetExchangeRateResult
NetSuiteException
- This could be one of the following: ExceededRecordCountFault
,
InvalidCredentialsFault
, UnexpectedErrorFault
,
ExceededRequestSizeFault
, ExceededRequestLimitFault
,
ExceededUsageLimitFault
, InvalidSessionFault
@Processor public GetConsolidatedExchangeRateResult getConsolidatedExchangeRates(@Default(value="#[payload]") RecordRef period, @Optional RecordRef fromSubsidiary, @Optional RecordRef toSubsidiary, @Placement(group="Request Preferences")@Optional Preferences preferences) throws NetSuiteException
Returns a list of consolidated exchange rates for a given period.
period
- References an existing period.fromSubsidiary
- References the receiving subsidiary.toSubsidiary
- References the originating subsidiary.preferences
- Preferences for the request.GetConsolidatedExchangeRateResult
NetSuiteException
- This could be one of the following: ExceededRecordCountFault
,
InvalidCredentialsFault
, UnexpectedErrorFault
,
ExceededRequestSizeFault
, ExceededRequestLimitFault
,
ExceededUsageLimitFault
, InvalidSessionFault
@Processor public GetCustomizationIdResult getCustomizationIds(GetCustomizationType type, @Default(value="false") boolean includeInactives, @Placement(group="Request Preferences")@Optional Preferences preferences) throws NetSuiteException
Returns the IDs of available customizations for a given customization type.
type
- the target record type.includeInactives
- if inactive customizations should also be returned.preferences
- Preferences for the request.NetSuiteException
- This could be one of the following: ExceededRecordCountFault
,
InvalidCredentialsFault
, UnexpectedErrorFault
,
ExceededRequestSizeFault
, ExceededRequestLimitFault
,
ExceededUsageLimitFault
, InvalidSessionFault
@Processor public GetDeletedResult getDeletedRecords(RecordTypeEnum type, @Default(value="1") Integer pageIndex, @Default(value="#[payload]") SearchDateField deletedDate, @Placement(group="Request Preferences")@Optional Preferences preferences) throws NetSuiteException
Returns a list of deleted records for the given record type and date period.
type
- the type of the target deleted record to retrievepageIndex
- the page number to retrievedeletedDate
- a com.netsuite.webservices.platform.coreSearchDateField
where you can define a predefined search date value, or a date period of your choice, together
with the search date operator.preferences
- Preferences for the request.NetSuiteException
- This could be one of the following: ExceededRecordCountFault
,
InvalidCredentialsFault
, UnexpectedErrorFault
,
ExceededRequestSizeFault
, ExceededRequestLimitFault
,
ExceededUsageLimitFault
, InvalidSessionFault
@Processor public GetAllResult getRecords(GetAllRecordType type, @Placement(group="Request Preferences")@Optional Preferences preferences) throws NetSuiteException
This operation is used to retrieve a list of all records of the specified type.
Records that support the getAll operation are listed in the GetAllRecordType
type
- the target record typepreferences
- Preferences for the request.NetSuiteException
- This could be one of the following: ExceededRecordCountFault
,
InvalidCredentialsFault
, UnexpectedErrorFault
,
ExceededRequestSizeFault
, ExceededRequestLimitFault
,
ExceededUsageLimitFault
, InvalidSessionFault
@Processor public List<ReadResponse> getList(@Default(value="#[payload]") List<? extends BaseRef> references, @Placement(group="Request Preferences")@Optional Preferences preferences) throws NetSuiteException
This operation is used to retrieve a list of objects referenced in the list of BaseRef object.
references
- List of BaseRef child classes. Check BaseRef
for a list of child classes.preferences
- Preferences for the request.NetSuiteException
- This could be one of the following: ExceededRecordCountFault
,
InvalidCredentialsFault
, UnexpectedErrorFault
,
ExceededRequestSizeFault
, ExceededRequestLimitFault
,
ExceededUsageLimitFault
, InvalidSessionFault
@Processor public Map<String,Object> get(@Default(value="#[payload]") BaseRefType baseRef, @Placement(group="Request Preferences")@Optional Preferences preferences) throws NetSuiteException
This is used to retrieve a record by providing the unique id that identifies that record.
baseRef
- An instance of BaseRefType
.preferences
- Preferences for the request.NetSuiteException
- This is thrown when the request returned an unsuccessful status. This could also be one of the following:
ExceededRecordCountFault
, InvalidCredentialsFault
,
UnexpectedErrorFault
, ExceededRequestSizeFault
,
ExceededRequestLimitFault
, ExceededUsageLimitFault
,
InvalidSessionFault
@MetaDataScope(value=RecordCategory.class) @Processor public Map<String,Object> getRecord(@MetaDataKeyParam(affects=OUTPUT) String type, @Default(value="#[payload]") String internalId, @Optional String externalId, @Placement(group="Request Preferences")@Optional Preferences preferences) throws NetSuiteException
This is used to retrieve a record by providing the unique id that identifies that record.
type
- The type of record to get.internalId
- The internalId of the record to get. You can choose between this or externalId.externalId
- The externalId of the record to get. You can choose between this or internalId.preferences
- Preferences for the request.NetSuiteException
- This is thrown when the request returned an unsuccessful status. This could also be one of the following:
ExceededRecordCountFault
, InvalidCredentialsFault
,
UnexpectedErrorFault
, ExceededRequestSizeFault
,
ExceededRequestLimitFault
, ExceededUsageLimitFault
,
InvalidSessionFault
@MetaDataScope(value=CustomRecordCategory.class) @Processor public Map<String,Object> getCustomRecord(@MetaDataKeyParam(affects=OUTPUT) String type, @Default(value="#[payload]") String internalId, @Optional String externalId, @Placement(group="Request Preferences")@Optional Preferences preferences) throws NetSuiteException
This is used to retrieve a custom record by providing the unique id that identifies that record.
type
- The type of record to get.internalId
- The internalId of the record to get. You can choose between this or externalId.externalId
- The externalId of the record to get. You can choose between this or internalId.preferences
- Preferences for the request.NetSuiteException
- This is thrown when the request returned an unsuccessful status. This could also be one of the following:
ExceededRecordCountFault
, InvalidCredentialsFault
,
UnexpectedErrorFault
, ExceededRequestSizeFault
,
ExceededRequestLimitFault
, ExceededUsageLimitFault
,
InvalidSessionFault
@Processor public GetItemAvailabilityResult getItemAvailability(@Default(value="#[payload]") RecordRef record, @Optional Date ifModifiedSince, @Placement(group="Request Preferences")@Optional Preferences preferences) throws NetSuiteException
Returns the availability for a given item 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.
record
- An instance of RecordRef
ifModifiedSince
- an optional modified since date. If set, only items with quantity available changes recorded as of the specified date are returned.preferences
- Preferences for the request.GetItemAvailabilityResult
NetSuiteException
- This could be one of the following: ExceededRecordCountFault
,
InvalidCredentialsFault
, UnexpectedErrorFault
,
ExceededRequestSizeFault
, ExceededRequestLimitFault
,
ExceededUsageLimitFault
, InvalidSessionFault
@Processor public GetSavedSearchResult getSavedSearch(SearchRecordType type) throws NetSuiteException
Retrieves a list of existing saved searches for the given record type.
type
- the target record typeNetSuiteException
- This could be one of the following: ExceededRecordCountFault
,
InvalidCredentialsFault
, UnexpectedErrorFault
,
ExceededRequestSizeFault
, ExceededRequestLimitFault
,
ExceededUsageLimitFault
, InvalidSessionFault
@Processor public Date getServerTime() throws NetSuiteException
Returns the server time.
NetSuiteException
- This could be one of the following: InvalidCredentialsFault
,
UnexpectedErrorFault
, ExceededRequestLimitFault
,
ExceededUsageLimitFault
, InvalidSessionFault
@Processor public WriteResponse updateInviteeStatus(@Default(value="#[payload]") RecordRef eventId, CalendarEventAttendeeResponseEnum status, @Placement(group="Request Preferences")@Optional Preferences preferences) throws NetSuiteException
Sets a new invitation status for a given event.
eventId
- the target event idstatus
- the new status to setpreferences
- Preferences for the request.WriteResponse
NetSuiteException
- This could be one of the following: ExceededRecordCountFault
,
InvalidCredentialsFault
, UnexpectedErrorFault
,
ExceededRequestSizeFault
, ExceededRequestLimitFault
,
ExceededUsageLimitFault
, InvalidSessionFault
@Processor public List<WriteResponse> updateInviteeStatusList(@Default(value="#[payload]") List<UpdateInviteeStatusReference> inviteeStatusList, @Placement(group="Request Preferences")@Optional Preferences preferences) throws NetSuiteException
Sets multiple new invitation status for a given event.
inviteeStatusList
- A list of the UpdateInviteeStatusReference
items.preferences
- Preferences for the request.WriteResponse
NetSuiteException
- This could be one of the following: ExceededRecordCountFault
,
InvalidCredentialsFault
, UnexpectedErrorFault
,
ExceededRequestSizeFault
, ExceededRequestLimitFault
,
ExceededUsageLimitFault
, InvalidSessionFault
@Processor public List<WriteResponse> addRecordObjects(@Default(value="#[payload]") List<? extends Record> records) throws NetSuiteException
Creates new records.
records
- a list of Record
objectsWriteResponse
NetSuiteException
- This could be one of the following: ExceededRecordCountFault
,
InvalidCredentialsFault
, UnexpectedErrorFault
,
ExceededRequestSizeFault
, ExceededRequestLimitFault
,
ExceededUsageLimitFault
, InvalidSessionFault
@Processor public BaseRef addRecord(@MetaDataKeyParam String recordType, @Default(value="#[payload]")@Placement(group="Record attributes") Map<String,Object> attributes, @Placement(group="Request Preferences")@Optional Preferences preferences) throws NetSuiteException
Creates a new record.
The attributes can either be the pojos corresponding to the field or a map that represents it.
recordType
- the type of record to addattributes
- the record attributes, as a string-object mappreferences
- Preferences of the requestRecordRef
or CustomRecordRef
depending on the type of
record that was addedNetSuiteException
- This is thrown when the request returned an unsuccessful status. This could also be one of the following:
ExceededRecordCountFault
, InvalidCredentialsFault
,
UnexpectedErrorFault
, ExceededRequestSizeFault
,
ExceededRequestLimitFault
, ExceededUsageLimitFault
,
InvalidSessionFault
@Processor public List<WriteResponse> addList(@MetaDataKeyParam String recordType, @Default(value="#[payload]") List<Map<String,Object>> records, @Placement(group="Request Preferences")@Optional Preferences preferences) throws NetSuiteException
Used to add one or more records into the system.
The attributes that define each record can either be the POJOs corresponding to the field or a map that represents it.
recordType
- the type of record to addrecords
- The records with their attributes, as a string-object mappreferences
- Preferences for the request.WriteResponse
NetSuiteException
- This could be one of the following: ExceededRecordCountFault
,
InvalidCredentialsFault
, UnexpectedErrorFault
,
ExceededRequestSizeFault
, ExceededRequestLimitFault
,
ExceededUsageLimitFault
, InvalidSessionFault
@Processor public List<WriteResponse> updateList(@MetaDataKeyParam String recordType, @Default(value="#[payload]") List<Map<String,Object>> records, @Placement(group="Request Preferences")@Optional Preferences preferences) throws NetSuiteException
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.
recordType
- the type of record to addrecords
- The records with their attributes, as a string-object mappreferences
- Preferences for the request.WriteResponse
NetSuiteException
- This could be one of the following: ExceededRecordCountFault
,
InvalidCredentialsFault
, UnexpectedErrorFault
,
ExceededRequestSizeFault
, ExceededRequestLimitFault
,
ExceededUsageLimitFault
, InvalidSessionFault
@Processor public List<WriteResponse> updateRecordsList(@Default(value="#[payload]") List<? extends Record> records, @Placement(group="Request Preferences")@Optional Preferences preferences) throws NetSuiteException
Used to update one or more existing records in the system by providing a list of records. The records to be updated are identified through the provided unique identifiers.
NOTE: This call cannot be used with Data mapping or data sense, it was added to allow users to add a batch of records of any type in 1 call.
records
- The records with their attributes.preferences
- Preferences for the request.WriteResponse
NetSuiteException
- This could be one of the following: ExceededRecordCountFault
,
InvalidCredentialsFault
, UnexpectedErrorFault
,
ExceededRequestSizeFault
, ExceededRequestLimitFault
,
ExceededUsageLimitFault
, InvalidSessionFault
@Processor public List<WriteResponse> deleteList(@Default(value="#[payload]") List<BaseRefType> records, @Placement(group="Request Preferences")@Optional Preferences preferences) throws NetSuiteException
Used to delete one or more records in the system.
records
- The records with their attributes, as a string-object mappreferences
- Preferences for the request.NetSuiteException
- This could be one of the following: ExceededRecordCountFault
,
InvalidCredentialsFault
, UnexpectedErrorFault
,
ExceededRequestSizeFault
, ExceededRequestLimitFault
,
ExceededUsageLimitFault
, InvalidSessionFault
@Processor public List<WriteResponse> deleteRecordsList(@Default(value="#[payload]") List<RecordRef> records, @Placement(group="Request Preferences")@Optional Preferences preferences) throws NetSuiteException
Used to delete one or more records in the system.
records
- A list of RecordRef
to deletepreferences
- Preferences for the request.NetSuiteException
- This could be one of the following: ExceededRecordCountFault
,
InvalidCredentialsFault
, UnexpectedErrorFault
,
ExceededRequestSizeFault
, ExceededRequestLimitFault
,
ExceededUsageLimitFault
, InvalidSessionFault
@Processor public RecordRef addFile(@Default(value="#[payload]") RecordRef folderId, @Placement(group="Additional file attributes")@Optional Map<String,Object> attributes, Object content, String fileName, @Placement(group="Request Preferences")@Optional Preferences preferences) throws IOException, NetSuiteException
Creates a new file record.
This Processor is similar to addRecord, but is customized for simplifying local content passing.
attributes
- the additional file attributescontent
- 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.fileName
- the name of the remote filefolderId
- the id of the folder record where to add this filepreferences
- Preferences for the request.IOException
- If the content cannot be parsed to byte[]NetSuiteException
- This is thrown when the request returned an unsuccessful status. This could also be one of the following:
ExceededRecordCountFault
, InvalidCredentialsFault
,
UnexpectedErrorFault
, ExceededRequestSizeFault
,
ExceededRequestLimitFault
, ExceededUsageLimitFault
,
InvalidSessionFault
@Processor public BaseRef updateRecord(@MetaDataKeyParam String recordType, @Default(value="#[payload]")@Placement(group="Record attributes") Map<String,Object> attributes, @Placement(group="Request Preferences")@Optional Preferences preferences) throws NetSuiteException
Updates an existing record.
The attributes can either be the POJOs corresponding to the field or a map that represents it.
recordType
- the target record type to updateattributes
- the record attributes, as a string-object map, including internalId or externalId attribute.preferences
- Preferences for the request.RecordRef
or CustomRecordRef
depending on the type of
record that was addedNetSuiteException
- This is thrown when the request returned an unsuccessful status. This could also be one of the following:
ExceededRecordCountFault
, InvalidCredentialsFault
,
UnexpectedErrorFault
, ExceededRequestSizeFault
,
ExceededRequestLimitFault
, ExceededUsageLimitFault
,
InvalidSessionFault
@Processor public BaseRef upsertRecord(@MetaDataKeyParam String recordType, @Default(value="#[payload]")@Placement(group="Record attributes") Map<String,Object> attributes, @Placement(group="Request Preferences")@Optional Preferences preferences) throws NetSuiteException
The upsert operation is used to add a new instance or to update an instance of a record in NetSuite.
The upsert operation is similar to both the add and update operations, but upsert can be run without first determining whether a record exists in NetSuite. A record is identified by its external ID and its record type. If a record of the specified type with a matching external ID exists in the system, it is updated. If it does not exist, a new record is created.
Because external ID is mandatory for this operation, upsert is supported only for records that support the external ID field.
Also, this operation prohibits the passing of internal ID values.
recordType
- the target record type to updateattributes
- the record attributes, as a string-object mappreferences
- Preferences for the request.RecordRef
or CustomRecordRef
depending on the type of
record that was addedNetSuiteException
- This is thrown when the request returned an unsuccessful status. This could also be one of the following:
ExceededRecordCountFault
, InvalidCredentialsFault
,
UnexpectedErrorFault
, ExceededRequestSizeFault
,
ExceededRequestLimitFault
, ExceededUsageLimitFault
,
InvalidSessionFault
@Processor public List<WriteResponse> upsertList(@MetaDataKeyParam String recordType, @Default(value="#[payload]") List<Map<String,Object>> records, @Placement(group="Request Preferences")@Optional Preferences preferences) throws NetSuiteException
The upsertList operation is used to add or update one or more instances of a record type in NetSuite.
The upsertList operation is similar to both the addList and updateList operations, but upsert can be run without first determining whether records exist in NetSuite. Records are identified by their external ID and their record type. If a record of the specified type with a matching external ID exists in the system, it is updated. If it does not exist, a new record is created.
Because external ID is mandatory for this operation, upsertList is supported only for records that support the external ID field.
Also, this operation prohibits the passing of internal ID values.
recordType
- the target record type to updaterecords
- the record attributes, as a string-object mappreferences
- Preferences for the request.NetSuiteException
- This could be one of the following: ExceededRecordCountFault
,
InvalidCredentialsFault
, UnexpectedErrorFault
,
ExceededRequestSizeFault
, ExceededRequestLimitFault
,
ExceededUsageLimitFault
, InvalidSessionFault
@Processor public AsyncStatusResult checkAsyncStatus(@Default(value="#[payload]") String jobId, @Placement(group="Request Preferences")@Optional Preferences preferences) throws NetSuiteException
This operation checks whether a particular asynchronous job has finished processing or not.
jobId
- the id of the job to check.preferences
- Preferences for the request.AsyncStatusResult
for the given jobNetSuiteException
- This could be one of the following: InvalidCredentialsFault
,
UnexpectedErrorFault
, ExceededRequestLimitFault
,
InvalidSessionFault
, AsyncFault
@MetaDataScope(value=SearchCategory.class) @Processor public AsyncStatusResult asyncSearch(@MetaDataKeyParam(affects=INPUT) String searchRecord, @Default(value="#[payload]") SearchRecord criteria, @Placement(group="Search preferences")@Default(value="true") boolean bodyFieldsOnly, @Placement(group="Search preferences")@Default(value="true") boolean returnSearchColumns, @Placement(group="Search preferences")@Optional Integer pageSize) throws NetSuiteException
An asynchronous request equivalent to #search(String, SearchRecord, boolean, boolean, Integer)
Searches for all records that match the given criteria, asynchronously. Note, due to the nature of the operation, this does not support paging meaning that only the first page of results would be returned.
If no criteria is specified, all records of the given type are retrieved.
In asynchronous requests, your client application sends a request to the SuiteTalk Platform where it is placed in a processing queue and handled asynchronously with other requests. Note that all available jobs for each polling period will be processed contiguously. There is no enforced waiting period for a job that is available. Once a job is initiated, a job ID is returned in the Web services response. Your client application can then check on the status and result of the request by referencing the job ID.
searchRecord
- The search type. See SearchRecordTypeEnum
.criteria
- An instance of SearchRecord
that defines the attributes that make up the search.bodyFieldsOnly
- Defaults to TRUE and indicates that the information in the body fields of the record are returned — significantly improving performance. Any fields in associated
lists or sublists are not returned. If the bodyFieldsOnly field is set to FALSE, all fields associated with the record are returned.returnSearchColumns
- Defaults to TRUE, meaning that only search columns will be returned in your search.pageSize
- Maximum amount of results per pageAsyncStatusResult
with the jobId that can be used to check the status and result of the job.NetSuiteException
- This could be one of the following: ExceededRecordCountFault
,
InvalidCredentialsFault
, UnexpectedErrorFault
,
ExceededRequestSizeFault
, ExceededRequestLimitFault
,
InvalidSessionFault
@Processor public AsyncResult getAsyncResult(@Default(value="#[payload]") String jobId, @Default(value="1") Integer pageIndex, @Placement(group="Request Preferences")@Optional Preferences preferences) throws NetSuiteException
This operation returns the result of a job given that it has finished processing.
jobId
- the id of the jobpageIndex
- the page number of the async resultpreferences
- Preferences for the request.NetSuiteException
- This could be one of the following: ExceededRecordCountFault
,
InvalidCredentialsFault
, UnexpectedErrorFault
,
ExceededRequestSizeFault
, ExceededRequestLimitFault
,
ExceededUsageLimitFault
, InvalidSessionFault
,
AsyncFault
@Processor public ReadResponse initialize(@Default(value="#[payload]") InitializeRecord record, @Placement(group="Request Preferences")@Optional Preferences preferences) throws NetSuiteException
Populates fields on transaction line items with values from a related record, in a similar way empty text boxes are pre-populated within the NetSuite UI.
record
- An instance of InitializeRecord
preferences
- Preferences for the request.NetSuiteException
- This could be one of the following: ExceededRecordCountFault
,
InvalidCredentialsFault
, UnexpectedErrorFault
,
ExceededRequestSizeFault
, ExceededRequestLimitFault
,
ExceededUsageLimitFault
, InvalidSessionFault
,@Processor public GetPostingTransactionSummaryResult getPostingTransactionSummary(@Default(value="#[payload]") PostingTransactionSummaryField fields, PostingTransactionSummaryFilter filters, @Default(value="1") Integer pageIndex, @Placement(group="Request Preferences")@Optional Preferences preferences) throws NetSuiteException
Used to retrieve a summary of the actual data in an Account.
The getPostingTransactionSummary operation allows you to retrieve a summary of the actual data posted to the general ledger in an Account. You can use available filters/fields to generate reports that are similar to what you see when you run financial reports such as a Trial Balance, Balance Sheet, or an Income Statement.
fields
- Specify how you want your data grouped.filters
- Specify your filtering criteria.pageIndex
- Specify the page to be returned.preferences
- Preferences for the request.GetPostingTransactionSummaryResult
containing the list of RecirdRef to the fields specifiedNetSuiteException
- This could be one of the following: ExceededRecordCountFault
,
InvalidCredentialsFault
, UnexpectedErrorFault
,
ExceededRequestSizeFault
, ExceededRequestLimitFault
,
ExceededUsageLimitFault
, InvalidSessionFault
,
AsyncFault
@Processor public GetSelectValueResult getSelectValue(int page, @Default(value="#[payload]") GetSelectValueFieldDescription fieldDescriptor, @Placement(group="Request Preferences")@Optional Preferences preferences) throws NetSuiteException
Used to retrieve valid values for a given recordRef field where the referenced record type is not yet exposed in the Web services API or when the logged in role does not have access to the instances of the record type.
page
- For select values that span multiple pages, use this argument to specify which page to return in your response.fieldDescriptor
- Use to specify all characteristics of the field containing the select values. For example, depending on the field and the values you want returned, you will
specify the names or internalIds for the record type, sublist, and field. You may also specify filtering criteria to refine the select options returned in the
response.preferences
- Preferences for the request.GetSelectValueResult
related to the request.NetSuiteException
- This could be one of the following: InvalidSessionFault
,
ExceededUsageLimitFault
, ExceededRequestLimitFault
,
ExceededRequestSizeFault
, UnexpectedErrorFault
,
InvalidCredentialsFault
, ExceededRecordCountFault
@Processor public GetCurrencyRateResult getCurrentRate(@Default(value="#[payload]") CurrencyRateFilter rateFilter, @Placement(group="Request Preferences")@Optional Preferences preferences) throws NetSuiteException
Use this operation to get the exchange rate between two currencies.
rateFilter
- Filter the returned currency exchange rates using this filter.preferences
- Preferences for the request.NetSuiteException
- This could be one of the following: InvalidSessionFault
,
ExceededUsageLimitFault
, ExceededRequestLimitFault
,
ExceededRequestSizeFault
, UnexpectedErrorFault
,
InvalidCredentialsFault
, ExceededRecordCountFault
@Processor public AsyncStatusResult asyncAddList(@MetaDataKeyParam String recordType, @Default(value="#[payload]") List<Map<String,Object>> recordsAttributes, @Placement(group="Request Preferences")@Optional Preferences preferences) throws NetSuiteException
An asynchronous request equivalent to addList(java.lang.String, java.util.List<java.util.Map<java.lang.String, java.lang.Object>>, com.netsuite.webservices.platform.messages.Preferences)
.
The attributes can either be the POJOs corresponding to the field or a map that represents it.
In asynchronous requests, your client application sends a request to the SuiteTalk Platform where it is placed in a processing queue and handled asynchronously with other requests. Note that all available jobs for each polling period will be processed contiguously. There is no enforced waiting period for a job that is available. Once a job is initiated, a job ID is returned in the Web services response. Your client application can then check on the status and result of the request by referencing the job ID.
Note: Asynchronous request JobIDs are valid for 30 days.
recordType
- The target record type.recordsAttributes
- A list of Mappreferences
- Preferences for the request.AsyncStatusResult
with the jobId that can be used to check the status and result of the job.NetSuiteException
- This could be one of the following: InvalidSessionFault
,
ExceededRequestLimitFault
, ExceededRequestSizeFault
,
UnexpectedErrorFault
, InvalidCredentialsFault
,
ExceededRecordCountFault
@Processor public AsyncStatusResult asyncUpdateList(@MetaDataKeyParam String recordType, @Default(value="#[payload]") List<Map<String,Object>> recordsAttributes, @Placement(group="Request Preferences")@Optional Preferences preferences) throws NetSuiteException
An asynchronous request equivalent to updateList(String, List, Preferences)
.
In asynchronous requests, your client application sends a request to the SuiteTalk Platform where it is placed in a processing queue and handled asynchronously with other requests. Note that all available jobs for each polling period will be processed contiguously. There is no enforced waiting period for a job that is available. Once a job is initiated, a job ID is returned in the Web services response. Your client application can then check on the status and result of the request by referencing the job ID.
Note: Asynchronous request JobIDs are valid for 30 days.
recordType
- The target record type.recordsAttributes
- A list of Mappreferences
- Preferences for the request.AsyncStatusResult
with the jobId that can be used to check the status and result.NetSuiteException
- This could be one of the following: InvalidSessionFault
,
ExceededRequestLimitFault
, ExceededRequestSizeFault
,
UnexpectedErrorFault
, InvalidCredentialsFault
,
ExceededRecordCountFault
@Processor public AsyncStatusResult asyncUpsertList(@MetaDataKeyParam String recordType, @Default(value="#[payload]") List<Map<String,Object>> recordsAttributes, @Placement(group="Request Preferences")@Optional Preferences preferences) throws NetSuiteException
An asynchronous request equivalent to upsertList(String, List, Preferences)
.
In asynchronous requests, your client application sends a request to the SuiteTalk Platform where it is placed in a processing queue and handled asynchronously with other requests. Note that all available jobs for each polling period will be processed contiguously. There is no enforced waiting period for a job that is available. Once a job is initiated, a job ID is returned in the Web services response. Your client application can then check on the status and result of the request by referencing the job ID.
Note: Asynchronous request JobIDs are valid for 30 days.
recordType
- The target record type.recordsAttributes
- A list of Mappreferences
- Preferences for the request.AsyncStatusResult
with the jobId that can be used to check the status and result of the job.NetSuiteException
- This could be one of the following: InvalidSessionFault
,
ExceededRequestLimitFault
, ExceededRequestSizeFault
,
UnexpectedErrorFault
, InvalidCredentialsFault
,
ExceededRecordCountFault
@Processor public AsyncStatusResult asyncDeleteListRecords(@Default(value="#[payload]") List<RecordRef> records, @Placement(group="Request Preferences")@Optional Preferences preferences) throws NetSuiteException
An asynchronous request equivalent to deleteRecordsList(List, Preferences)
.
In asynchronous requests, your client application sends a request to the SuiteTalk Platform where it is placed in a processing queue and handled asynchronously with other requests. Note that all available jobs for each polling period will be processed contiguously. There is no enforced waiting period for a job that is available. Once a job is initiated, a job ID is returned in the Web services response. Your client application can then check on the status and result of the request by referencing the job ID.
Note: Asynchronous request JobIDs are valid for 30 days.
records
- A list of RecordRef
that references the objects to be deleted.preferences
- Preferences for the request.AsyncStatusResult
with the jobId that can be used to check the status and result of the job.NetSuiteException
- This could be one of the following: InvalidSessionFault
,
ExceededRequestLimitFault
, ExceededRequestSizeFault
,
UnexpectedErrorFault
, InvalidCredentialsFault
,
ExceededRecordCountFault
@Processor public AsyncStatusResult asyncDeleteList(@Default(value="#[payload]") List<BaseRefType> records, @Placement(group="Request Preferences")@Optional Preferences preferences) throws NetSuiteException
An asynchronous request equivalent to deleteList(List, Preferences)
.
In asynchronous requests, your client application sends a request to the SuiteTalk Platform where it is placed in a processing queue and handled asynchronously with other requests. Note that all available jobs for each polling period will be processed contiguously. There is no enforced waiting period for a job that is available. Once a job is initiated, a job ID is returned in the Web services response. Your client application can then check on the status and result of the request by referencing the job ID.
Note: Asynchronous request JobIDs are valid for 30 days.
records
- A list of BaseRefType
that references the objects to be deleted.preferences
- Preferences for the request.AsyncStatusResult
with the jobId that can be used to check the status and result of the job.NetSuiteException
- This could be one of the following: InvalidSessionFault
,
ExceededRequestLimitFault
, ExceededRequestSizeFault
,
UnexpectedErrorFault
, InvalidCredentialsFault
,
ExceededRecordCountFault
@Processor public AsyncStatusResult asyncGetListRecords(@Default(value="#[payload]") List<RecordRef> records, @Placement(group="Request Preferences")@Optional Preferences preferences) throws NetSuiteException
An asynchronous request equivalent to getList(List, Preferences)
.
In asynchronous requests, your client application sends a request to the SuiteTalk Platform where it is placed in a processing queue and handled asynchronously with other requests. Note that all available jobs for each polling period will be processed contiguously. There is no enforced waiting period for a job that is available. Once a job is initiated, a job ID is returned in the Web services response. Your client application can then check on the status and result of the request by referencing the job ID.
Note: Asynchronous request JobIDs are valid for 30 days.
records
- A list of RecordRef
that references the objects to be retrieved.preferences
- Preferences for the request.AsyncStatusResult
with the jobId that can be used to check the status and result of the job.NetSuiteException
- This could be one of the following: InvalidSessionFault
,
ExceededRequestLimitFault
, ExceededRequestSizeFault
,
UnexpectedErrorFault
, InvalidCredentialsFault
,
ExceededRecordCountFault
@Processor public AsyncStatusResult asyncGetList(@Default(value="#[payload]") List<BaseRefType> records, @Placement(group="Request Preferences")@Optional Preferences preferences) throws NetSuiteException
An asynchronous request equivalent to getList(List, Preferences)
.
In asynchronous requests, your client application sends a request to the SuiteTalk Platform where it is placed in a processing queue and handled asynchronously with other requests. Note that all available jobs for each polling period will be processed contiguously. There is no enforced waiting period for a job that is available. Once a job is initiated, a job ID is returned in the Web services response. Your client application can then check on the status and result of the request by referencing the job ID.
Note: Asynchronous request JobIDs are valid for 30 days.
records
- A list of RecordRef
that references the objects to be retrieved.preferences
- Preferences for the request.AsyncStatusResult
with the jobId that can be used to check the status and result of the job.NetSuiteException
- This could be one of the following: InvalidSessionFault
,
ExceededRequestLimitFault
, ExceededRequestSizeFault
,
UnexpectedErrorFault
, InvalidCredentialsFault
,
ExceededRecordCountFault
@Processor public AsyncStatusResult asyncInitializeList(@Default(value="#[payload]") List<InitializeRecord> initializeRecord, @Placement(group="Request Preferences")@Optional Preferences preferences) throws NetSuiteException
An asynchronous request equivalent to initializeList(List, Preferences)
.
In asynchronous requests, your client application sends a request to the SuiteTalk Platform where it is placed in a processing queue and handled asynchronously with other requests. Note that all available jobs for each polling period will be processed contiguously. There is no enforced waiting period for a job that is available. Once a job is initiated, a job ID is returned in the Web services response. Your client application can then check on the status and result of the request by referencing the job ID.
Note: Asynchronous request JobIDs are valid for 30 days.
initializeRecord
- A list of InitializeRecord
that references the objects to be initialized.preferences
- Preferences for the request.AsyncStatusResult
with the jobId that can be used to check the status and result of the job.NetSuiteException
- This could be one of the following: InvalidSessionFault
,
ExceededUsageLimitFault
, ExceededRequestLimitFault
,
ExceededRequestSizeFault
, UnexpectedErrorFault
,
InvalidCredentialsFault
, ExceededRecordCountFault
@Processor public List<ReadResponse> initializeList(@Default(value="#[payload]") List<InitializeRecord> initializeRecord, @Placement(group="Request Preferences")@Optional Preferences preferences) throws NetSuiteException
Used to emulate the UI workflow by pre-populating fields on transaction line items with values from a related record.
initializeRecord
- The list of InitializeRecord
to initialize.preferences
- Preferences for the request.NetSuiteException
- This could be one of the following: InvalidSessionFault
,
ExceededUsageLimitFault
, ExceededRequestLimitFault
,
ExceededRequestSizeFault
, UnexpectedErrorFault
,
InvalidCredentialsFault
, ExceededRecordCountFault
@Processor public SessionResponse changeEmail(@Default(value="#[payload]") String newEmail, @Default(value="true") Boolean justThisAccount) throws NetSuiteException
Used to change the email address for the account.
newEmail
- Value for the new email.justThisAccount
- Update email for just this account.SessionResponse
.NetSuiteException
- This exception is thrown when this operation is used with SSO Login Authentication. This could also be one of the following:
ExceededRequestLimitFault
, UnexpectedErrorFault
,
InvalidCredentialsFault
, InvalidAccountFault
,
InsufficientPermissionFault
, InvalidVersionFault
,
ExceededRecordCountFault
@Processor public SessionResponse changePassword(@Default(value="#[payload]") String newPassword, @Default(value="true") Boolean justThisAccount) throws NetSuiteException
Used to change the password for the account.
newPassword
- New password valuejustThisAccount
- Apply change just to this account.SessionResponse
.NetSuiteException
- This could be one of the following: ExceededRequestLimitFault
,
UnexpectedErrorFault
, InvalidCredentialsFault
,
InvalidAccountFault
, InsufficientPermissionFault
,
InvalidVersionFault
, ExceededRecordCountFault
@Processor public GetDataCenterUrlsResult getDataCenterUrls(@Default(value="#[payload]") String accountId) throws NetSuiteException
Returns the accessible data-center URLs for the accountId specified.
accountId
- Netsuite account IdNetSuiteException
- This could be one of the following: UnexpectedErrorFault
,
ExceededRequestSizeFault
@Processor public SessionResponse mapSso(String userAccount, String userPartnerId, String authenticationToken, String userEmail, String userPassword, @Default(value="#[payload]") RecordRef userRole) throws NetSuiteException
Used to automate the mapping between external applications credentials and NetSuite’s credentials for a user.
This operation provides a mapping, not a login to NetSuite. This operation does NOT provide the ability to log in using a single sign-on token, cannot provisian a partner with the inbound single sign-on feature, or aid with public/private key exchange. Use of this operation implies that the account already has inbound single sign-on set up and has access to the associated partner ID and encryption keys needed to generate the token.
userAccount
- AccountuserPartnerId
- This is the integration partner’s affiliate ID as provided to the partner by NetSuite.authenticationToken
- this is a string representing the encrypted token.userEmail
- EmailuserPassword
- PassworduserRole
- RoleNetSuiteException
- This could be one of the following: ExceededRequestLimitFault
,
UnexpectedErrorFault
, InvalidCredentialsFault
,
InvalidAccountFault
, InsufficientPermissionFault
,
InvalidVersionFault
,@MetaDataScope(value=SearchCategory.class) @Processor @Paged public org.mule.streaming.ProviderAwarePagingDelegate<Map<String,Object>,NetSuiteConnector> search(@MetaDataKeyParam(affects=INPUT) String searchRecord, @Default(value="#[payload]") SearchRecord criteria, @Placement(group="Search preferences")@Default(value="true") boolean bodyFieldsOnly, @Placement(group="Search preferences")@Default(value="true") boolean returnSearchColumns, org.mule.streaming.PagingConfiguration pagingConfiguration) throws NetSuiteException
The search operation is used to execute a search on a specific record type based on a set of criteria. This processor has been enhanced with a paging mechanism.
Searches can be Basic, Advanced or Join searches. See SearchRecord
for all the available searches.
searchRecord
- The search type. See SearchRecordTypeEnum
.criteria
- An instance of SearchRecord
that defines the attributes that make up the search.bodyFieldsOnly
- Defaults to TRUE and indicates that the information in the body fields of the record are returned — significantly improving performance. Any fields in associated
lists or sublists are not returned. If the bodyFieldsOnly field is set to FALSE, all fields associated with the record are returned.returnSearchColumns
- Defaults to TRUE, meaning that only search columns will be returned in your search.pagingConfiguration
- Page SizeNetSuiteException
- This could be one of the following: ExceededRecordCountFault
,
InvalidCredentialsFault
, UnexpectedErrorFault
,
ExceededRequestSizeFault
, ExceededRequestLimitFault
,
ExceededUsageLimitFault
, InvalidSessionFault
,
AsyncFault
public void setRegistry(org.mule.api.registry.MuleRegistry registry)
public void setStrategy(NetSuiteConnectionStrategy strategy)
public NetSuiteConnectionStrategy getStrategy()
protected void registerTransformers()
@Start public void init()
Copyright © 2010–2016. All rights reserved.