public class RecordOperations extends Object
| Constructor and Description |
|---|
RecordOperations() |
| Modifier and Type | Method and Description |
|---|---|
org.mule.runtime.extension.api.runtime.operation.Result<InputStream,NetsuiteSoapAttributes> |
add(NetSuiteSoapConfig config,
NetSuiteSoapConnection connection,
String type,
InputStream message)
Creates a new record.
|
org.mule.runtime.extension.api.runtime.operation.Result<InputStream,NetsuiteSoapAttributes> |
addList(NetSuiteSoapConfig config,
NetSuiteSoapConnection connection,
String type,
InputStream message)
Creates a new record.
|
org.mule.runtime.extension.api.runtime.operation.Result<InputStream,NetsuiteSoapAttributes> |
attach(NetSuiteSoapConfig config,
NetSuiteSoapConnection connection,
String attachRefType,
InputStream message)
Defines a relationship between two records.
|
org.mule.runtime.extension.api.runtime.operation.Result<InputStream,NetsuiteSoapAttributes> |
delete(NetSuiteSoapConfig config,
NetSuiteSoapConnection connection,
RecordRefAndTypeParameterGroup key,
InputStream message)
Delete one or more record instances.
|
org.mule.runtime.extension.api.runtime.operation.Result<InputStream,NetsuiteSoapAttributes> |
deleteList(NetSuiteSoapConfig config,
NetSuiteSoapConnection connection,
RecordRefAndTypeParameterGroup key,
InputStream message)
Deletes a record.
|
org.mule.runtime.extension.api.runtime.operation.Result<InputStream,NetsuiteSoapAttributes> |
detach(NetSuiteSoapConfig config,
NetSuiteSoapConnection connection,
String detachRefType,
InputStream message)
Deletes a relationship between two records.
|
org.mule.runtime.extension.api.runtime.operation.Result<InputStream,NetsuiteSoapAttributes> |
get(NetSuiteSoapConfig config,
NetSuiteSoapConnection connection,
RecordRefAndTypeParameterGroup key,
InputStream message)
This is used to retrieve a record by providing the unique id that identifies that record.
|
org.mule.runtime.extension.api.runtime.operation.Result<InputStream,NetsuiteSoapAttributes> |
getAll(NetSuiteSoapConfig config,
NetSuiteSoapConnection connection,
String type,
InputStream message)
This is used to retrieve a list of all records of the specified type.
|
org.mule.runtime.extension.api.runtime.streaming.PagingProvider<NetSuiteSoapConnection,org.mule.runtime.extension.api.runtime.operation.Result<String,NetsuiteSoapAttributes>> |
getDeleted(NetSuiteSoapConfig config,
InputStream filter,
int limit,
int pageSize)
Returns a list of deleted records for the given record type and date period.
|
org.mule.runtime.extension.api.runtime.operation.Result<InputStream,NetsuiteSoapAttributes> |
getList(NetSuiteSoapConfig config,
NetSuiteSoapConnection connection,
RecordRefAndTypeParameterGroup key,
InputStream message)
This is used to retrieve a list of one or more records by providing the unique ids that identify those records.
|
org.mule.runtime.extension.api.runtime.operation.Result<InputStream,NetsuiteSoapAttributes> |
getSavedSearch(NetSuiteSoapConfig config,
NetSuiteSoapConnection connection,
String searchType)
This operation allows users to retrieve a list of existing saved search IDs on a per-record-type basis.
|
org.mule.runtime.extension.api.runtime.streaming.PagingProvider<NetSuiteSoapConnection,org.mule.runtime.extension.api.runtime.operation.Result<String,NetsuiteSoapAttributes>> |
getSelectValue(NetSuiteSoapConfig config,
InputStream fieldDescription,
int pageSize)
Returns valid select options for a particular RecordRef, CustomRecordRef, or enumerated static field.
|
org.mule.runtime.extension.api.runtime.operation.Result<InputStream,NetsuiteSoapAttributes> |
initialize(NetSuiteSoapConfig config,
NetSuiteSoapConnection connection,
InputStream message)
Prepopulate fields on transaction line items with values from a related record.
|
org.mule.runtime.extension.api.runtime.operation.Result<InputStream,NetsuiteSoapAttributes> |
initializeList(NetSuiteSoapConfig config,
NetSuiteSoapConnection connection,
InputStream message)
Prepopulate fields on transaction line items with values from related records.
|
org.mule.runtime.extension.api.runtime.streaming.PagingProvider<NetSuiteSoapConnection,org.mule.runtime.extension.api.runtime.operation.Result<String,NetsuiteSoapAttributes>> |
search(NetSuiteSoapConfig config,
String key,
InputStream message,
int pageSize,
int limit,
boolean bodyFieldsOnly,
boolean returnSearchColumns)
The search operation is used to execute a search on a specific record type based on a set of criteria.
|
org.mule.runtime.extension.api.runtime.operation.Result<InputStream,NetsuiteSoapAttributes> |
update(NetSuiteSoapConfig config,
NetSuiteSoapConnection connection,
String type,
InputStream message)
Updates an existing record.
|
org.mule.runtime.extension.api.runtime.operation.Result<InputStream,NetsuiteSoapAttributes> |
updateList(NetSuiteSoapConfig config,
NetSuiteSoapConnection connection,
String type,
InputStream message)
This is used to update one or more instances of a record type.
|
org.mule.runtime.extension.api.runtime.operation.Result<InputStream,NetsuiteSoapAttributes> |
upsert(NetSuiteSoapConfig config,
NetSuiteSoapConnection connection,
String type,
InputStream message)
Adds a new instance or to update an instance of a record in NetSuite.
|
org.mule.runtime.extension.api.runtime.operation.Result<InputStream,NetsuiteSoapAttributes> |
upsertList(NetSuiteSoapConfig config,
NetSuiteSoapConnection connection,
String type,
InputStream message)
This is used to add or update one or more instances of a record type in NetSuite.
|
@OutputResolver(output=RecordOperationsMetadataResolvers.AttachRecordMetadataResolver.class, attributes=RecordOperationsMetadataResolvers.AttachRecordMetadataResolver.class) @MediaType(value="text/xml") public org.mule.runtime.extension.api.runtime.operation.Result<InputStream,NetsuiteSoapAttributes> attach(@Config NetSuiteSoapConfig config, @Connection NetSuiteSoapConnection connection, @Optional @MetadataKeyId(value=RecordOperationsMetadataResolvers.AttachRecordMetadataResolver.class) String attachRefType, @TypeResolver(value=RecordOperationsMetadataResolvers.AttachRecordMetadataResolver.class) @Content InputStream message)
config - The NetSuite soap config.connection - The NetSuite soap connection.attachRefType - The attach reference typemessage - The attach request to complete.@OutputResolver(output=RecordOperationsMetadataResolvers.DetachRecordMetadataResolver.class, attributes=RecordOperationsMetadataResolvers.DetachRecordMetadataResolver.class) @MediaType(value="text/xml") public org.mule.runtime.extension.api.runtime.operation.Result<InputStream,NetsuiteSoapAttributes> detach(@Config NetSuiteSoapConfig config, @Connection NetSuiteSoapConnection connection, @Optional @MetadataKeyId(value=RecordOperationsMetadataResolvers.DetachRecordMetadataResolver.class) String detachRefType, @TypeResolver(value=RecordOperationsMetadataResolvers.DetachRecordMetadataResolver.class) @Content InputStream message)
config - The NetSuite soap config.connection - The NetSuite soap connection.detachRefType - The detach reference typemessage - The detach request to complete.@Throws(value=NetSuiteSingleErrorTypeProvider.class) @OutputResolver(output=RecordOperationsMetadataResolvers.GetMetadataResolver.class, attributes=RecordOperationsMetadataResolvers.GetMetadataResolver.class) @MediaType(value="text/xml") public org.mule.runtime.extension.api.runtime.operation.Result<InputStream,NetsuiteSoapAttributes> get(@Config NetSuiteSoapConfig config, @Connection NetSuiteSoapConnection connection, @MetadataKeyId(value=RecordOperationsMetadataResolvers.GetMetadataResolver.class) @ParameterGroup(name="types") RecordRefAndTypeParameterGroup key, @TypeResolver(value=RecordOperationsMetadataResolvers.GetMetadataResolver.class) @Content InputStream message)
config - The NetSuite soap config.connection - The NetSuite soap connection.key - The record ref and record type for the operation.message - The get request to complete.@Throws(value=NetSuiteMultipleErrorTypeProvider.class) @OutputResolver(output=RecordOperationsMetadataResolvers.GetListMetadataResolver.class, attributes=RecordOperationsMetadataResolvers.GetListMetadataResolver.class) @MediaType(value="text/xml") public org.mule.runtime.extension.api.runtime.operation.Result<InputStream,NetsuiteSoapAttributes> getList(@Config NetSuiteSoapConfig config, @Connection NetSuiteSoapConnection connection, @MetadataKeyId(value=RecordOperationsMetadataResolvers.GetListMetadataResolver.class) @ParameterGroup(name="types") RecordRefAndTypeParameterGroup key, @TypeResolver(value=RecordOperationsMetadataResolvers.GetListMetadataResolver.class) @Content InputStream message)
config - The NetSuite soap config.connection - The NetSuite soap connection.key - the record ref and record type for the operation.message - The get list request to complete.@OutputResolver(output=RecordOperationsMetadataResolvers.GetAllMetadataResolver.class, attributes=RecordOperationsMetadataResolvers.GetAllMetadataResolver.class) @MediaType(value="text/xml") public org.mule.runtime.extension.api.runtime.operation.Result<InputStream,NetsuiteSoapAttributes> getAll(@Config NetSuiteSoapConfig config, @Connection NetSuiteSoapConnection connection, @Optional @MetadataKeyId(value=RecordOperationsMetadataResolvers.GetAllMetadataResolver.class) String type, @TypeResolver(value=RecordOperationsMetadataResolvers.GetAllMetadataResolver.class) @Content InputStream message)
config - The NetSuite soap config.connection - The NetSuite soap connection.message - The get All request to complete.type - The record type for the operation.@Throws(value=NetSuiteSingleErrorTypeProvider.class) @OutputResolver(output=RecordOperationsMetadataResolvers.AddRecordMetadataResolver.class, attributes=RecordOperationsMetadataResolvers.AddRecordMetadataResolver.class) @MediaType(value="text/xml") public org.mule.runtime.extension.api.runtime.operation.Result<InputStream,NetsuiteSoapAttributes> add(@Config NetSuiteSoapConfig config, @Connection NetSuiteSoapConnection connection, @MetadataKeyId(value=RecordOperationsMetadataResolvers.AddRecordMetadataResolver.class) @Optional String type, @TypeResolver(value=RecordOperationsMetadataResolvers.AddRecordMetadataResolver.class) @Content InputStream message)
config - The NetSuite soap config.connection - netsuite soap connection.type - The record type for the operation.message - the message to complete.@Throws(value=NetSuiteMultipleErrorTypeProvider.class) @OutputResolver(output=RecordOperationsMetadataResolvers.AddListMetadataResolver.class, attributes=RecordOperationsMetadataResolvers.AddListMetadataResolver.class) @MediaType(value="text/xml") public org.mule.runtime.extension.api.runtime.operation.Result<InputStream,NetsuiteSoapAttributes> addList(@Config NetSuiteSoapConfig config, @Connection NetSuiteSoapConnection connection, @MetadataKeyId(value=RecordOperationsMetadataResolvers.AddListMetadataResolver.class) @Optional String type, @TypeResolver(value=RecordOperationsMetadataResolvers.AddListMetadataResolver.class) @Content InputStream message)
config - The NetSuite soap config.connection - The NetSuite soap connection.type - The record type for the operation.message - The add list request to complete.@Throws(value=NetSuiteSingleErrorTypeProvider.class) @OutputResolver(output=RecordOperationsMetadataResolvers.UpdateRecordMetadataResolver.class, attributes=RecordOperationsMetadataResolvers.UpdateRecordMetadataResolver.class) @MediaType(value="text/xml") public org.mule.runtime.extension.api.runtime.operation.Result<InputStream,NetsuiteSoapAttributes> update(@Config NetSuiteSoapConfig config, @Connection NetSuiteSoapConnection connection, @Optional @MetadataKeyId(value=RecordOperationsMetadataResolvers.UpdateRecordMetadataResolver.class) String type, @TypeResolver(value=RecordOperationsMetadataResolvers.UpdateRecordMetadataResolver.class) @Content InputStream message)
config - The NetSuite soap config.connection - The NetSuite soap connection.type - The record type for the operation.message - The update record request to complete.@Throws(value=NetSuiteMultipleErrorTypeProvider.class) @OutputResolver(output=RecordOperationsMetadataResolvers.UpdateListMetadataResolver.class, attributes=RecordOperationsMetadataResolvers.UpdateListMetadataResolver.class) @MediaType(value="text/xml") public org.mule.runtime.extension.api.runtime.operation.Result<InputStream,NetsuiteSoapAttributes> updateList(@Config NetSuiteSoapConfig config, @Connection NetSuiteSoapConnection connection, @Optional @MetadataKeyId(value=RecordOperationsMetadataResolvers.UpdateListMetadataResolver.class) String type, @TypeResolver(value=RecordOperationsMetadataResolvers.UpdateListMetadataResolver.class) @Content InputStream message)
config - The NetSuite soap config.connection - The NetSuite soap connection.type - The record type for the operation.message - The update list request to complete.@Throws(value=NetSuiteSingleErrorTypeProvider.class) @OutputResolver(output=RecordOperationsMetadataResolvers.UpsertRecordMetadataResolver.class, attributes=RecordOperationsMetadataResolvers.UpsertRecordMetadataResolver.class) @MediaType(value="text/xml") public org.mule.runtime.extension.api.runtime.operation.Result<InputStream,NetsuiteSoapAttributes> upsert(@Config NetSuiteSoapConfig config, @Connection NetSuiteSoapConnection connection, @Optional @MetadataKeyId(value=RecordOperationsMetadataResolvers.UpsertRecordMetadataResolver.class) String type, @TypeResolver(value=RecordOperationsMetadataResolvers.UpsertRecordMetadataResolver.class) @Content InputStream message)
config - The NetSuite soap config.connection - The NetSuite soap connection.type - The record type for the operation.message - The upsert record request to complete.@Throws(value=NetSuiteMultipleErrorTypeProvider.class) @OutputResolver(output=RecordOperationsMetadataResolvers.UpsertListMetadataResolver.class, attributes=RecordOperationsMetadataResolvers.UpsertListMetadataResolver.class) @MediaType(value="text/xml") public org.mule.runtime.extension.api.runtime.operation.Result<InputStream,NetsuiteSoapAttributes> upsertList(@Config NetSuiteSoapConfig config, @Connection NetSuiteSoapConnection connection, @Optional @MetadataKeyId(value=RecordOperationsMetadataResolvers.UpsertListMetadataResolver.class) String type, @TypeResolver(value=RecordOperationsMetadataResolvers.UpsertListMetadataResolver.class) @Content InputStream message)
config - The NetSuite soap config.connection - The NetSuite soap connection.type - the record type for the operation.message - The upsert list request to complete.@Throws(value=NetSuiteSingleErrorTypeProvider.class) @OutputResolver(output=RecordOperationsMetadataResolvers.DeleteRecordMetadataResolver.class, attributes=RecordOperationsMetadataResolvers.DeleteRecordMetadataResolver.class) @MediaType(value="text/xml") public org.mule.runtime.extension.api.runtime.operation.Result<InputStream,NetsuiteSoapAttributes> delete(@Config NetSuiteSoapConfig config, @Connection NetSuiteSoapConnection connection, @MetadataKeyId(value=RecordOperationsMetadataResolvers.DeleteRecordMetadataResolver.class) @ParameterGroup(name="types") RecordRefAndTypeParameterGroup key, @TypeResolver(value=RecordOperationsMetadataResolvers.DeleteRecordMetadataResolver.class) @Content InputStream message)
config - The NetSuite soap config.connection - The NetSuite soap connection.message - The delete request to complete.key - The record ref and record type for the operation.@Throws(value=NetSuiteMultipleErrorTypeProvider.class) @OutputResolver(output=RecordOperationsMetadataResolvers.DeleteListMetadataResolver.class, attributes=RecordOperationsMetadataResolvers.DeleteListMetadataResolver.class) @MediaType(value="text/xml") public org.mule.runtime.extension.api.runtime.operation.Result<InputStream,NetsuiteSoapAttributes> deleteList(@Config NetSuiteSoapConfig config, @Connection NetSuiteSoapConnection connection, @MetadataKeyId(value=RecordOperationsMetadataResolvers.DeleteListMetadataResolver.class) @ParameterGroup(name="types") RecordRefAndTypeParameterGroup key, @TypeResolver(value=RecordOperationsMetadataResolvers.DeleteListMetadataResolver.class) @Content InputStream message)
config - The NetSuite soap config.connection - The NetSuite soap connection.key - The record ref and record type for the operation.message - The delete list request to complete.@OutputResolver(output=RecordOperationsMetadataResolvers.GetDeletedMetadataResolver.class, attributes=RecordOperationsMetadataResolvers.GetDeletedMetadataResolver.class) @Throws(value=NetSuiteMultipleErrorTypeProvider.class) public org.mule.runtime.extension.api.runtime.streaming.PagingProvider<NetSuiteSoapConnection,org.mule.runtime.extension.api.runtime.operation.Result<String,NetsuiteSoapAttributes>> getDeleted(@Config NetSuiteSoapConfig config, @TypeResolver(value=RecordOperationsMetadataResolvers.GetDeletedMetadataResolver.class) @Content InputStream filter, @Placement(tab="Search preferences") @Optional(defaultValue="-1") @Example(value="100") int limit, @Placement(tab="Search preferences") @Optional(defaultValue="10") @Example(value="10") int pageSize)
config - The NetSuite soap config.filter - The getDeletedFilter to filter results from the results.limit - The maximum amount of results to return from this callpageSize - Maximum amount of results per page@OutputResolver(output=RecordOperationsMetadataResolvers.GetSelectValueMetadataResolver.class, attributes=RecordOperationsMetadataResolvers.GetSelectValueMetadataResolver.class) public org.mule.runtime.extension.api.runtime.streaming.PagingProvider<NetSuiteSoapConnection,org.mule.runtime.extension.api.runtime.operation.Result<String,NetsuiteSoapAttributes>> getSelectValue(@Config NetSuiteSoapConfig config, @TypeResolver(value=RecordOperationsMetadataResolvers.GetSelectValueMetadataResolver.class) @Content InputStream fieldDescription, @Optional(defaultValue="10") @Example(value="10") int pageSize)
config - The NetSuite soap config.fieldDescription - The get select value request to complete.pageSize - Maximum amount of results per page.@OutputResolver(output=RecordOperationsMetadataResolvers.InitializeMetadataResolver.class, attributes=RecordOperationsMetadataResolvers.InitializeMetadataResolver.class) @Throws(value=NetSuiteMultipleErrorTypeProvider.class) @MediaType(value="text/xml") public org.mule.runtime.extension.api.runtime.operation.Result<InputStream,NetsuiteSoapAttributes> initialize(@Config NetSuiteSoapConfig config, @Connection NetSuiteSoapConnection connection, @TypeResolver(value=RecordOperationsMetadataResolvers.InitializeMetadataResolver.class) @Content InputStream message)
config - The NetSuite soap config.connection - The NetSuite soap connection.message - The initialize request to complete.@OutputResolver(output=RecordOperationsMetadataResolvers.InitializeListMetadataResolver.class, attributes=RecordOperationsMetadataResolvers.InitializeListMetadataResolver.class) @Throws(value=NetSuiteMultipleErrorTypeProvider.class) @MediaType(value="text/xml") public org.mule.runtime.extension.api.runtime.operation.Result<InputStream,NetsuiteSoapAttributes> initializeList(@Config NetSuiteSoapConfig config, @Connection NetSuiteSoapConnection connection, @TypeResolver(value=RecordOperationsMetadataResolvers.InitializeListMetadataResolver.class) @Content InputStream message)
config - The NetSuite soap config.connection - The NetSuite soap connection.message - The initialize list request to complete.@Throws(value=NetSuiteMultipleErrorTypeProvider.class) @OutputResolver(output=RecordOperationsMetadataResolvers.SearchMetadataResolver.class, attributes=RecordOperationsMetadataResolvers.SearchMetadataResolver.class) public org.mule.runtime.extension.api.runtime.streaming.PagingProvider<NetSuiteSoapConnection,org.mule.runtime.extension.api.runtime.operation.Result<String,NetsuiteSoapAttributes>> search(@Config NetSuiteSoapConfig config, @MetadataKeyId(value=RecordOperationsMetadataResolvers.SearchMetadataResolver.class) @Optional String key, @Content @TypeResolver(value=RecordOperationsMetadataResolvers.SearchMetadataResolver.class) InputStream message, @Summary(value="This field limits the amount of results returned by the search, defaults to -1. 0 and -1 meaning not to limit the results.") @Placement(tab="Search preferences") @Optional(defaultValue="10") @Example(value="10") int pageSize, @Placement(tab="Search preferences") @Optional(defaultValue="-1") @Example(value="100") int limit, @Placement(tab="Search preferences") @Optional(defaultValue="true") boolean bodyFieldsOnly, @Placement(tab="Search preferences") @Optional(defaultValue="true") boolean returnSearchColumns)
config - The NetSuite soap config.message - The search request to complete.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.limit - Limits the amount of results produced. Limit less than 0 means no limitkey - The type of search that will render the output metadata.pageSize - Maximum amount of results per page.@OutputResolver(output=RecordOperationsMetadataResolvers.GetSavedSearchMetadataResolver.class, attributes=RecordOperationsMetadataResolvers.GetSavedSearchMetadataResolver.class) @MediaType(value="text/xml") public org.mule.runtime.extension.api.runtime.operation.Result<InputStream,NetsuiteSoapAttributes> getSavedSearch(@Config NetSuiteSoapConfig config, @Connection NetSuiteSoapConnection connection, @MetadataKeyId(value=RecordOperationsMetadataResolvers.GetSavedSearchMetadataResolver.class) String searchType)
config - The NetSuite soap config.connection - The NetSuite soap connection.searchType - The targeted search type.Copyright © 2025 MuleSoft, Inc.. All rights reserved.