| Namespace | http://www.mulesoft.org/schema/mule/sfdc |
|---|---|
| Schema Location | http://www.mulesoft.org/schema/mule/sfdc/current/mule-sfdc.xsd (View Schema) |
| Schema Version | 5.0 |
| Minimum Mule Version | 3.4 |
The Salesforce Connector will allow to connect to the Salesforce application using OAuth as the authentication mechanism. Almost every operation that can be done via the Salesforce's API can be done thru this connector. This connector will also work if your Salesforce objects are customized with additional fields or even you are working with custom objects.
Integrating with Salesforce consists of web service calls utilizing XML request/response setup over an HTTPS connection. The technical details of this connection such as request headers, error handling, HTTPS connection, etc. are all abstracted from the user to make implementation quick and easy. This version of the connector allows you to use OAuth for authentication instead of the username/password/securityToken combination.| Configuration | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Configure an instance of this module
| |||||||||||
| Utility Calls API calls that your client applications can invoke to obtain the system timestamp, user information, and change user passwords. | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Retrieves the list of records that have been updated between the last time this method was called and now.
| |||||||||||
Retrieves personal information for the user associated with the current session.
| |||||||||||
Resets the timestamp of the last updated object.
| |||||||||||
Change the password of a User or SelfServiceUser to a value that you specify.
| |||||||||||
| Streaming API Create topics, to which applications can subscribe, receiving asynchronous notifications of changes to data in Salesforce, via the Bayeux protocol. | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Creates a topic which represents a query that is the basis for notifying
listeners of changes to records in an organization.
| |||||||||||
Subscribe to a topic.
| |||||||||||
| Describe Calls A set of calls to describe record structure in Salesforce. | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Retrieves a list of available objects for your organization's data.
| |||||||||||
Describes metadata (field list and object properties) for the specified object.
| |||||||||||
| Core Calls A set of calls that compromise the core of the API. | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Converts a Lead into an Account, Contact, or (optionally) an Opportunity.
| |||||||||||
Adds one or more new records to your organization's data.
| |||||||||||
Adds one new records to your organization's data.
| |||||||||||
Deletes one or more records from your organization's data.
| |||||||||||
The recycle bin lets you view and restore recently deleted records for 30 days before they are
permanently deleted.
| |||||||||||
Retrieves the list of individual records that have been deleted between the range of now to the duration before now.
| |||||||||||
Retrieves the list of individual records that have been deleted within the given timespan for the specified object.
| |||||||||||
Retrieves the list of individual records that have been updated between the range of now to the duration before now.
| |||||||||||
Retrieves the list of individual records that have been created/updated within the given timespan for the specified object.
| |||||||||||
Executes a paginated query against the specified object and returns data that matches the specified criteria.
| |||||||||||
Executes a query against the specified object and returns data that matches the specified criteria.
| |||||||||||
Retrieves data from specified objects, whether or not they have been deleted.
| |||||||||||
Executes a query against the specified object and returns the first record that matches the specified criteria.
| |||||||||||
Retrieves one or more records based on the specified IDs.
| |||||||||||
Search for objects using Salesforce Object Search Language
| |||||||||||
Updates one or more existing records in your organization's data.
| |||||||||||
Updates one or more existing records in your organization's data.
| |||||||||||
Upserts
an homogeneous list of objects: creates new records and updates existing records, using a custom field to determine the presence of existing records.
| |||||||||||
| Bulk API The Bulk API provides programmatic access to allow you to quickly load your organization\'s data into Salesforce. | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Aborts an open Job given its ID.
| |||||||||||
Access latest BatchInfo of a submitted BatchInfo.
| |||||||||||
Access
BatchResult of a submitted BatchInfo. | |||||||||||
Access
BatchResult of a submitted BatchInfo. | |||||||||||
Closes an open Job given its ID.
| |||||||||||
Creates a Batch using the given objects within the specified Job.
| |||||||||||
Creates a Batch using the given query.
| |||||||||||
Creates a Batch using the given stream within the specified Job.
| |||||||||||
Adds one or more new records to your organization's data.
| |||||||||||
Creates a Job in order to perform one or more batches through Bulk API Operations.
| |||||||||||
Deletes one or more records from your organization's data.
| |||||||||||
Returns an InputStream with the query results of a submitted BatchInfo
| |||||||||||
Updates one or more existing records in your organization's data.
| |||||||||||
Upserts
an homogeneous list of objects: creates new records and updates existing records, using a custom field to determine the presence of existing records.
| |||||||||||
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:sfdc="http://www.mulesoft.org/schema/mule/sfdc"
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/sfdc
http://www.mulesoft.org/schema/mule/sfdc/current/mule-sfdc.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 | Java Type | MIME Type | Encoding | Optional. Give a name to this configuration so it can be later referenced. | ||||
| Your application's client identifier (consumer key in Remote Access Detail). | |||||||||||
| Your application's client secret (consumer secret in Remote Access Detail). | |||||||||||
| https://login.salesforce.com/services/oauth2/authorize | Optional. The URL defined by the Service Provider where the resource owner will be redirected to grant authorization to the connector | ||||||||||
| https://login.salesforce.com/services/oauth2/token | Optional. The URL defined by the Service Provider to obtain an access token | ||||||||||
INCLUDE_ERROR
This connector uses OAuth as an authorization and authentication mechanism with automatic saving and restoring of access tokens. Every message processor in this connector has an extra attribute entitled accessTokenId which is an identification of the user authorizing the conenctor. In order to obtain an access token identification you need to first call the authroize message processor.
Authorizing the connector is a simple process of calling:
<sfdc:authorize/>
The call to authorize message processor must be made from a message coming from an HTTP inbound endpoint as the authorize process will reply with a redirect to the service provider. The following is an example of how to use it in a flow with an HTTP inbound endpoint:
<flow name="authorizationAndAuthenticationFlow">
<http:inbound-endpoint host="localhost" port="8080" path="oauth-authorize"/>
<sfdc:authorize/>
</flow>
If you hit that endpoint via a web-browser it will initiate the OAuth dance, redirecting the user to the service provider page and creating a callback endpoint so the service provider can redirect back once the user has been authenticated and properly authorized the connector. Once the callback gets called then the connector will automatically issue an access token identifier that you need to save as either a cookie or a database record for any subsequent calls.
The authorize message processor also supports the following attributes:
| Authorize Attributes | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Name | Default Value | Description | |||||||||
| Optional. Tailors the login page to the user\'s device type. | |||||||||||
| Optional. Avoid interacting with the user. | |||||||||||
| Optional. Specifies how the authorization server prompts the user for reauthentication and reapproval. | |||||||||||
| https://login.salesforce.com/services/oauth2/authorize | Optional. The URL defined by the Service Provider where the resource owner will be redirected to grant authorization to the connector | ||||||||||
| https://login.salesforce.com/services/oauth2/token | Optional. The URL defined by the Service Provider to obtain an access token | ||||||||||
The authorize message processor is an intercepting one. If the connector is not authorized yet, it will redirect to the service provider so the user can authorize the connector. This is the reason as to why the authorize needs to be behind and http:inbound-endpoint. The service provider upon successful authentication and authorization then will call back the connector. The connector will extract information from that call, set its internal state to authorized, and then continue execution. Continuing execution means executing everything that was after the authorize whose execution got interrupted because the connector was not authorized.
<flow name="authorizationAndAuthenticationFlow">
<http:inbound-endpoint host="localhost" port="8080" path="oauth-authorize"/>
<sfdc:authorize/>
<http:response-builder status="200">
<set-payload value="You have successfully authorized the connector"/>
</http:response-builder>
</flow>
In the previous example we added the http:response-build (notice that this element is available only in Mule 3.3.0 and later). If the connector is not authorized, the execution of the response builder will be delayed up to the point of the callback execution.
On the other hand if the connector has been authorized and you call authorize again then the flow execution will not stop, it will rather continue and the http:response-builder will get executed right away rather than after the callback.
The following is an example of the authorize message processor, after which it will print the access token identifier to the log:
<flow name="authorizationAndAuthenticationFlow">
<http:inbound-endpoint host="localhost" port="8080" path="oauth-authorize"/>
<sfdc:authorize/>
<log level="INFO" message="The connector has been properly authorized. The access token identifier is #[flowVars['OAuthAccessTokenId']]"/>
</flow>
The OAuthAccessTokenId flow variable is a special variable available to all the message processors executing after the authorize call. The following snippet shows how you can save it as a HTTP protocol cookie:
<flow name="authorizationAndAuthenticationFlow">
<http:inbound-endpoint host="localhost" port="8080" path="oauth-authorize"/>
<sfdc:authorize/>
<http:response-builder status="200">
<http:set-cookie name="accessTokenId" value="#[flowVars['OAuthAccessTokenId']]"/>
<set-payload value="You have successfully authorized the connector. You access token id is #[flowVars['OAuthAccessTokenId']]"/>
</http:response-builder>
</flow>
The access token identifier is unique per user and therefore the connector can be authorized for many users. If the user authorizes the connector twice it will have the same access token identifier both times.
If for any reason, an errors ocurrs while processing the callback, the exception strategy of the flow containing the authorize will be executed. So, if the callback sent the wrong information you can handle that situation by setting up an exception strategy as follows:
<flow name="authorizationAndAuthenticationFlow">
<http:inbound-endpoint host="localhost" port="8080" path="oauth-authorize"/>
<sfdc:authorize/>
<http:response-builder status="200">
<set-payload value="You have successfully authorized the connector"/>
</http:response-builder>
<catch-exception-strategy>
<http:response-builder status="404">
<set-payload value="An error has occurred authorizing the connector"/>
</http:response-builder>
</catch-exception-strategy>
</flow>
Once this connector has been authorized further calls to the authorize message processor will be no-ops. If you wish to reset the state of the connector back to a non-authorized state you can call:
<sfdc:unauthorize/>
Keep in mind that after the connector is unauthorized all future calls that attempt to access protected resources will fail until the connector is re-authorized.
As mentioned earlier once authorize gets called and before we redirect the user to the service provider we create a callback endpoint. The callback endpoint will get called automatically by the service provider once the user is authenticated and he grants authorization to the connector to access his private information.
The callback can be customized in the config element of the this connector as follows:
<sfdc:config>
<sfdc:oauth-callback-config domain="${fullDomain}" localPort="${http.port}" remotePort="80"/>
</sfdc:config>
The oauth-callback-config element can be used to customize the endpoint that gets created for the callback. It features the following attributes:
| OAuth Callback Config Attributes | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Name | Description | ||||||||||
| Optional. Reference to a user-defined HTTP connector. | |||||||||||
| Optional. The domain portion of the callback URL. This is usually something like xxx.cloudhub.io if you are deploying to CloudHub for example. | |||||||||||
| Optional. The local port number that the endpoint will listen on. Normally 80, in the case of CloudHub you can use the environment variable ${http.port}. | |||||||||||
| Optional. This is the port number that we will tell the service provider we are listening on. It is usually the same as localPort but it is separated in case your deployment features port forwarding or a proxy. | |||||||||||
| Optional. Path under which the callback should be exposed. If not specified a random path will be generated. | |||||||||||
The example shown above is what the configuration would look like if your app would be deployed to CloudHub.
This connector has the capability of automatically saving and restoring access tokens. The connector will store in either the default user object store or a user-defined one the acquired access tokens, refresh tokens, and any other pertinent information using the access token identifier as the key.
The object store can be configured as follows
<sfdc:config>
<sfdc:oauth-store-config objectStore-ref="my-object-store"/>
</sfdc:config>
There is only a single attribute entitled objectStore-ref in the oauth-store-config element that allows the user to specify the name of the object store that he wishes to use to save and restore access tokens.
Retrieves the list of records that have been updated between the last time this method was called and now. This
method will save the timestamp of the latest date covered by Salesforce represented by GetUpdatedResult#latestDateCovered.
IMPORTANT: In order to use this method in a reliable way user must ensure that right after this method returns the result is
stored in a persistent way since the timestamp of the latest . In order to reset the latest update time
use resetUpdatedObjectsTimestamp
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| Object type. The specified value must be a valid object for your organization. | String | */* | UTF-8 | ||||||||
| Time window (in minutes) used to calculate the start time (in time range) the first time this operation is called. E.g: if initialTimeWindow equals 2, the start time will be the current time (now) minus 2 minutes, then the range to retrieve the updated object will be (now - 2 minutes; now). After first call the start time will be calculated from the object store getting the last time this operation was exec | int | */* | |||||||||
| OAuth Parameters The following values are always required when using OAuth as the authentication mechanism. | |||||||||||
| Access token identifier used to retrieve an access token from the store | |||||||||||
| Name | Default Value | Description | Java Type |
|---|---|---|---|
| #[payload] | Optional. The fields to retrieve for the updated objects | List<String> |
| Return Type | Description |
|---|---|
| List<Map<String, Object>> | List with the updated objects in the calculated time range |
| Payload Class | Description |
|---|---|
| Exception | ConnectionException when there is an error |
Retrieves personal information for the user associated with the current session.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| OAuth Parameters The following values are always required when using OAuth as the authentication mechanism. | |||||||||||
| Access token identifier used to retrieve an access token from the store | |||||||||||
| Return Type | Description |
|---|---|
| GetUserInfoResult | GetUserInfoResult |
| Payload Class | Description |
|---|---|
| Exception | ConnectionException when there is an error |
Resets the timestamp of the last updated object. After resetting this, a call to this#getUpdatedObjects will use the initialTimeWindow to get the updated objects. If no timeObjectStore has been explicitly specified and this#getUpdatedObjects has not been called then calling this method has no effect.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| The object type for which the timestamp should be reset. | String | */* | UTF-8 | ||||||||
| OAuth Parameters The following values are always required when using OAuth as the authentication mechanism. | |||||||||||
| Access token identifier used to retrieve an access token from the store | |||||||||||
| Payload Class | Description |
|---|---|
| ObjectStoreException | ConnectionException when there is an error
|
Change the password of a User or SelfServiceUser to a value that you specify.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| The user to set the password for. | String | */* | UTF-8 | ||||||||
| The new password for the user. | String | */* | UTF-8 | ||||||||
| OAuth Parameters The following values are always required when using OAuth as the authentication mechanism. | |||||||||||
| Access token identifier used to retrieve an access token from the store | |||||||||||
| Payload Class | Description |
|---|---|
| Exception | ConnectionException when there is an error
|
Creates a topic which represents a query that is the basis for notifying listeners of changes to records in an organization.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| Descriptive name of the push topic, such as MyNewCases or TeamUpdatedContacts. The maximum length is 25 characters. This value identifies the channel. | String | */* | UTF-8 | ||||||||
| The SOQL query statement that determines which records' changes trigger events to be sent to the channel. Maximum length: 1200 characters | String | */* | UTF-8 | ||||||||
| Optional. Description of what kinds of records are returned by the query. Limit: 400 characters | String | */* | UTF-8 | ||||||||
| OAuth Parameters The following values are always required when using OAuth as the authentication mechanism. | |||||||||||
| Access token identifier used to retrieve an access token from the store | |||||||||||
| Payload Class | Description |
|---|---|
| Exception | ConnectionException when there is an error |
Retrieves a list of available objects for your organization's data.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| OAuth Parameters The following values are always required when using OAuth as the authentication mechanism. | |||||||||||
| Access token identifier used to retrieve an access token from the store | |||||||||||
| Return Type | Description |
|---|---|
| DescribeGlobalResult | A DescribeGlobalResult |
| Payload Class | Description |
|---|---|
| Exception | ConnectionException when there is an error |
Describes metadata (field list and object properties) for the specified object.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| Object. The specified value must be a valid object for your organization. For a complete list of objects, see Standard Objects | String | */* | UTF-8 | ||||||||
| OAuth Parameters The following values are always required when using OAuth as the authentication mechanism. | |||||||||||
| Access token identifier used to retrieve an access token from the store | |||||||||||
| Return Type | Description |
|---|---|
| DescribeSObjectResult | DescribeSObjectResult |
| Payload Class | Description |
|---|---|
| Exception | ConnectionException when there is an error |
Converts a Lead into an Account, Contact, or (optionally) an Opportunity.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| ID of the Lead to convert. Required. For information on IDs, see ID Field Type. | String | */* | UTF-8 | ||||||||
| Optional. ID of the Contact into which the lead will be merged (this contact must be associated with the specified accountId, and an accountId must be specified). Required only when updating an existing contact.IMPORTANT if you are converting a lead into a person account, do not specify the contactId or an error will result. Specify only the accountId of the person account. If no contactID is specified, then the API creates a new contact that is implicitly associated with the Account. To create a new contact, the client application must be logged in with sufficient access rights. To merge a lead into an existing contact, the client application must be logged in with read/write access to the specified contact. The contact name and other existing data are not overwritten (unless overwriteLeadSource is set to true, in which case only the LeadSource field is overwritten). For information on IDs, see ID Field Type. | String | */* | UTF-8 | ||||||||
| Optional. ID of the Account into which the lead will be merged. Required only when updating an existing account, including person accounts. If no accountID is specified, then the API creates a new account. To create a new account, the client application must be logged in with sufficient access rights. To merge a lead into an existing account, the client application must be logged in with read/write access to the specified account. The account name and other existing data are not overwritten. For information on IDs, see ID Field Type. | String | */* | UTF-8 | ||||||||
| false | Optional. Specifies whether to overwrite the LeadSource field on the target Contact object with the contents of the LeadSource field in the source Lead object (true), or not (false, the default). To set this field to true, the client application must specify a contactId for the target contact. | Boolean | */* | ||||||||
| false | Optional. Specifies whether to create an Opportunity during lead conversion (false, the default) or not (true). Set this flag to true only if you do not want to create an opportunity from the lead. An opportunity is created by default. | Boolean | */* | ||||||||
| Optional. Name of the opportunity to create. If no name is specified, then this value defaults to the company name of the lead. The maximum length of this field is 80 characters. If doNotCreateOpportunity argument is true, then no Opportunity is created and this field must be left blank; otherwise, an error is returned. | String | */* | UTF-8 | ||||||||
| Valid LeadStatus value for a converted lead. Required. To obtain the list of possible values, the client application queries the LeadStatus object, as in: Select Id, MasterLabel from LeadStatus where IsConverted=true | String | */* | UTF-8 | ||||||||
| false | Optional. Specifies whether to send a notification email to the owner specified in the ownerId (true) or not (false, the default). | Boolean | */* | ||||||||
| OAuth Parameters The following values are always required when using OAuth as the authentication mechanism. | |||||||||||
| Access token identifier used to retrieve an access token from the store | |||||||||||
| Return Type | Description |
|---|---|
| LeadConvertResult | A LeadConvertResult object |
| Payload Class | Description |
|---|---|
| Exception | ConnectionException when there is an error |
Adds one or more new records to your organization's data.
IMPORTANT: When you map your objects to the input of this message processor keep in mind that they need to match the expected type of the object at Salesforce.
Take the CloseDate of an Opportunity as an example, if you set that field to a string of value "2011-12-13" it will be sent to Salesforce as a string and operation will be rejected on the basis that CloseDate is not of the expected type. The proper way to actually map it is to generate a Java Date object, you can do so using Groovy expression evaluator as #[groovy:Date.parse("yyyy-MM-dd", "2011-12-13")].INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| Type of object to create | String | */* | UTF-8 | ||||||||
| OAuth Parameters The following values are always required when using OAuth as the authentication mechanism. | |||||||||||
| Access token identifier used to retrieve an access token from the store | |||||||||||
| Name | Default Value | Description | Java Type |
|---|---|---|---|
| #[payload] | Optional. An array of one or more sObjects objects. | List<Map<String, Object>> |
| Return Type | Description |
|---|---|
| List<SaveResult> | An array of SaveResult if async is false |
| Payload Class | Description |
|---|---|
| Exception | ConnectionException when there is an error |
Adds one new records to your organization's data.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| Type of object to create | String | */* | UTF-8 | ||||||||
| OAuth Parameters The following values are always required when using OAuth as the authentication mechanism. | |||||||||||
| Access token identifier used to retrieve an access token from the store | |||||||||||
| Name | Default Value | Description | Java Type |
|---|---|---|---|
| #[payload] | Optional. SObject to create | Map<String, Object> |
| Return Type | Description |
|---|---|
| SaveResult | An array of SaveResult |
| Payload Class | Description |
|---|---|
| Exception | ConnectionException when there is an error |
Deletes one or more records from your organization's data.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| OAuth Parameters The following values are always required when using OAuth as the authentication mechanism. | |||||||||||
| Access token identifier used to retrieve an access token from the store | |||||||||||
| Name | Default Value | Description | Java Type |
|---|---|---|---|
| #[payload] | Optional. Array of one or more IDs associated with the objects to delete. | List<String> |
| Return Type | Description |
|---|---|
| List<DeleteResult> | An array of DeleteResult |
| Payload Class | Description |
|---|---|
| Exception | ConnectionException when there is an error |
The recycle bin lets you view and restore recently deleted records for 30 days before they are permanently deleted. Your organization can have up to 5000 records per license in the Recycle Bin at any one time. For example, if your organization has five user licenses, 25,000 records can be stored in the Recycle Bin. If your organization reaches its Recycle Bin limit, Salesforce.com automatically removes the oldest records, as long as they have been in the recycle bin for at least two hours.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| OAuth Parameters The following values are always required when using OAuth as the authentication mechanism. | |||||||||||
| Access token identifier used to retrieve an access token from the store | |||||||||||
| Name | Default Value | Description | Java Type |
|---|---|---|---|
| Array of one or more IDs associated with the records to delete from the recycle bin. Maximum number of records is 200. | List<String> |
| Return Type | Description |
|---|---|
| List<EmptyRecycleBinResult> | A list of EmptyRecycleBinResult |
| Payload Class | Description |
|---|---|
| Exception | ConnectionException when there is an error |
Retrieves the list of individual records that have been deleted between the range of now to the duration before now.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| Object type. The specified value must be a valid object for your organization. | String | */* | UTF-8 | ||||||||
| The amount of time in minutes before now for which to return records from. | int | */* | |||||||||
| OAuth Parameters The following values are always required when using OAuth as the authentication mechanism. | |||||||||||
| Access token identifier used to retrieve an access token from the store | |||||||||||
| Return Type | Description |
|---|---|
| GetDeletedResult | GetDeletedResult |
| Payload Class | Description |
|---|---|
| Exception | ConnectionException when there is an error |
Retrieves the list of individual records that have been deleted within the given timespan for the specified object.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| Object type. The specified value must be a valid object for your organization. | String | */* | UTF-8 | ||||||||
| Starting date/time (Coordinated Universal Time (UTC)not local timezone) of the timespan for which to retrieve the data. The API ignores the seconds portion of the specified dateTime value ' (for example, 12:30:15 is interpreted as 12:30:00 UTC). | Calendar | */* | |||||||||
| Optional. Ending date/time (Coordinated Universal Time (UTC)not local timezone) of the timespan for which to retrieve the data. The API ignores the seconds portion of the specified dateTime value (for example, 12:35:15 is interpreted as 12:35:00 UTC). If not specific, the current server time will be used. | Calendar | */* | |||||||||
| OAuth Parameters The following values are always required when using OAuth as the authentication mechanism. | |||||||||||
| Access token identifier used to retrieve an access token from the store | |||||||||||
| Return Type | Description |
|---|---|
| GetDeletedResult | GetDeletedResult |
| Payload Class | Description |
|---|---|
| Exception | ConnectionException when there is an error |
Retrieves the list of individual records that have been updated between the range of now to the duration before now.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| Object type. The specified value must be a valid object for your organization. | String | */* | UTF-8 | ||||||||
| The amount of time in minutes before now for which to return records from. | int | */* | |||||||||
| OAuth Parameters The following values are always required when using OAuth as the authentication mechanism. | |||||||||||
| Access token identifier used to retrieve an access token from the store | |||||||||||
| Return Type | Description |
|---|---|
| GetUpdatedResult | GetUpdatedResult object containing an array of GetUpdatedResult objects containing the ID of each created or updated object and the date/time (Coordinated Universal Time (UTC) time zone) on which it was created or updated, respectively |
| Payload Class | Description |
|---|---|
| Exception | ConnectionException when there is an error |
Retrieves the list of individual records that have been created/updated within the given timespan for the specified object.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| Object type. The specified value must be a valid object for your organization. | String | */* | UTF-8 | ||||||||
| Starting date/time (Coordinated Universal Time (UTC)not local timezone) of the timespan for which to retrieve the data. The API ignores the seconds portion of the specified dateTime value ' (for example, 12:30:15 is interpreted as 12:30:00 UTC). | Calendar | */* | |||||||||
| Optional. Ending date/time (Coordinated Universal Time (UTC)not local timezone) of the timespan for which to retrieve the data. The API ignores the seconds portion of the specified dateTime value (for example, 12:35:15 is interpreted as 12:35:00 UTC). If it is not provided, the current server time will be used. | Calendar | */* | |||||||||
| OAuth Parameters The following values are always required when using OAuth as the authentication mechanism. | |||||||||||
| Access token identifier used to retrieve an access token from the store | |||||||||||
| Return Type | Description |
|---|---|
| GetUpdatedResult | GetUpdatedResult |
| Payload Class | Description |
|---|---|
| Exception | ConnectionException when there is an error |
Executes a paginated query against the specified object and returns data that matches the specified criteria.
The returned class QueryResultObject provides the methods getData() to retrieve the results in a ListXML Sample
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| Optional. Query string that specifies the object to query, the fields to return, and any conditions for including a specific object in the query. For more information, see Salesforce Object Query Language (SOQL). | String | */* | UTF-8 | ||||||||
| Optional. QueryResultObject returned by a previous call to this operation. If this is set the other parameter will be ignored. | QueryResultObject | */* | |||||||||
| false | Optional. Flag that specifies whether or not to retrieve records that have been deleted. | Boolean | */* | ||||||||
| OAuth Parameters The following values are always required when using OAuth as the authentication mechanism. | |||||||||||
| Access token identifier used to retrieve an access token from the store | |||||||||||
| Return Type | Description |
|---|---|
| QueryResultObject | QueryResultObject with the results of the query or null. |
| Payload Class | Description |
|---|---|
| Exception | ConnectionException when there is an error |
Executes a query against the specified object and returns data that matches the specified criteria.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| Query string that specifies the object to query, the fields to return, and any conditions for including a specific object in the query. For more information, see Salesforce Object Query Language (SOQL). | String | */* | UTF-8 | ||||||||
| OAuth Parameters The following values are always required when using OAuth as the authentication mechanism. | |||||||||||
| Access token identifier used to retrieve an access token from the store | |||||||||||
| Return Type | Description |
|---|---|
| List<Map<String, Object>> | An array of SObjects |
| Payload Class | Description |
|---|---|
| Exception | ConnectionException when there is an error |
Retrieves data from specified objects, whether or not they have been deleted.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| Query string that specifies the object to query, the fields to return, and any conditions for including a specific object in the query. For more information, see Salesforce Object Query Language (SOQL). | String | */* | UTF-8 | ||||||||
| OAuth Parameters The following values are always required when using OAuth as the authentication mechanism. | |||||||||||
| Access token identifier used to retrieve an access token from the store | |||||||||||
| Return Type | Description |
|---|---|
| List<Map<String, Object>> | An array of SObjects |
| Payload Class | Description |
|---|---|
| Exception | ConnectionException when there is an error |
Executes a query against the specified object and returns the first record that matches the specified criteria.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| Query string that specifies the object to query, the fields to return, and any conditions for including a specific object in the query. For more information, see Salesforce Object Query Language (SOQL). | String | */* | UTF-8 | ||||||||
| OAuth Parameters The following values are always required when using OAuth as the authentication mechanism. | |||||||||||
| Access token identifier used to retrieve an access token from the store | |||||||||||
| Return Type | Description |
|---|---|
| Map<String, Object> | A single SObject |
| Payload Class | Description |
|---|---|
| Exception | ConnectionException when there is an error |
Retrieves one or more records based on the specified IDs.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| Object type. The sp ecified value must be a valid object for your organization. | String | */* | UTF-8 | ||||||||
| OAuth Parameters The following values are always required when using OAuth as the authentication mechanism. | |||||||||||
| Access token identifier used to retrieve an access token from the store | |||||||||||
| Name | Default Value | Description | Java Type |
|---|---|---|---|
| The ids of the objects to retrieve | List<String> | ||
| The fields to return for the matching objects | List<String> |
| Return Type | Description |
|---|---|
| List<Map<String, Object>> | An array of SObjects |
| Payload Class | Description |
|---|---|
| Exception | ConnectionException when there is an error
|
Search for objects using Salesforce Object Search Language
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| Query string that specifies the object to query, the fields to return, and any conditions for including a specific object in the query. For more information, see Salesforce Object Search Language (SOSL). | String | */* | UTF-8 | ||||||||
| OAuth Parameters The following values are always required when using OAuth as the authentication mechanism. | |||||||||||
| Access token identifier used to retrieve an access token from the store | |||||||||||
| Return Type | Description |
|---|---|
| List<Map<String, Object>> | An array of SObjects |
| Payload Class | Description |
|---|---|
| Exception | ConnectionException when there is an error |
Updates one or more existing records in your organization's data.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| Type of object to update | String | */* | UTF-8 | ||||||||
| OAuth Parameters The following values are always required when using OAuth as the authentication mechanism. | |||||||||||
| Access token identifier used to retrieve an access token from the store | |||||||||||
| Name | Default Value | Description | Java Type |
|---|---|---|---|
| #[payload] | Optional. An array of one or more sObjects objects. | List<Map<String, Object>> |
| Return Type | Description |
|---|---|
| List<SaveResult> | An array of SaveResult |
| Payload Class | Description |
|---|---|
| Exception | ConnectionException when there is an error |
Updates one or more existing records in your organization's data.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| Type of object to update | String | */* | UTF-8 | ||||||||
| OAuth Parameters The following values are always required when using OAuth as the authentication mechanism. | |||||||||||
| Access token identifier used to retrieve an access token from the store | |||||||||||
| Name | Default Value | Description | Java Type |
|---|---|---|---|
| #[payload] | Optional. The object to be updated. | Map<String, Object> |
| Return Type | Description |
|---|---|
| SaveResult | A SaveResult |
| Payload Class | Description |
|---|---|
| Exception | ConnectionException when there is an error |
Upserts
an homogeneous list of objects: creates new records and updates existing records, using a custom field to determine the presence of existing records.
In most cases, prefer upsert(String, String, List) over create(String, List),
to avoid creating unwanted duplicate records.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| Contains the name of the field on this object with the external ID field attribute for custom objects or the idLookup field property for standard objects. | String | */* | UTF-8 | ||||||||
| The type of the given objects. The list of objects to upsert must be homogeneous | String | */* | UTF-8 | ||||||||
| OAuth Parameters The following values are always required when using OAuth as the authentication mechanism. | |||||||||||
| Access token identifier used to retrieve an access token from the store | |||||||||||
| Name | Default Value | Description | Java Type |
|---|---|---|---|
| #[payload] | Optional. The objects to upsert | List<Map<String, Object>> |
| Return Type | Description |
|---|---|
| List<UpsertResult> | a list of UpsertResult, one for each passed object |
| Payload Class | Description |
|---|---|
| Exception | ConnectionException when there is an error if a connection error occurs |
Aborts an open Job given its ID.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| The Job ID identifying the Job to be aborted. | String | */* | UTF-8 | ||||||||
| OAuth Parameters The following values are always required when using OAuth as the authentication mechanism. | |||||||||||
| Access token identifier used to retrieve an access token from the store | |||||||||||
| Return Type | Description |
|---|---|
| JobInfo | A JobInfo that identifies the aborted Job. |
| Payload Class | Description |
|---|---|
| Exception | ConnectionException when there is an error |
Access latest BatchInfo of a submitted BatchInfo. Allows to track execution status.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| The BatchInfo being monitored | BatchInfo | */* | |||||||||
| OAuth Parameters The following values are always required when using OAuth as the authentication mechanism. | |||||||||||
| Access token identifier used to retrieve an access token from the store | |||||||||||
| Return Type | Description |
|---|---|
| BatchInfo | Latest BatchInfo representing status of the batch job result. |
| Payload Class | Description |
|---|---|
| Exception | ConnectionException when there is an error |
Access BatchResult of a submitted BatchInfo.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| The BatchInfo being monitored | BatchInfo | */* | |||||||||
| OAuth Parameters The following values are always required when using OAuth as the authentication mechanism. | |||||||||||
| Access token identifier used to retrieve an access token from the store | |||||||||||
| Return Type | Description |
|---|---|
| BatchResult | BatchResult representing result of the batch job result. |
| Payload Class | Description |
|---|---|
| Exception | ConnectionException when there is an error |
Access BatchResult of a submitted BatchInfo.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| The BatchInfo being monitored | BatchInfo | */* | |||||||||
| OAuth Parameters The following values are always required when using OAuth as the authentication mechanism. | |||||||||||
| Access token identifier used to retrieve an access token from the store | |||||||||||
| Return Type | Description |
|---|---|
| InputStream | java.io.InputStream representing result of the batch job result. |
| Payload Class | Description |
|---|---|
| Exception | ConnectionException when there is an error |
Closes an open Job given its ID.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| The Job ID identifying the Job to be closed. | String | */* | UTF-8 | ||||||||
| OAuth Parameters The following values are always required when using OAuth as the authentication mechanism. | |||||||||||
| Access token identifier used to retrieve an access token from the store | |||||||||||
| Return Type | Description |
|---|---|
| JobInfo | A JobInfo that identifies the closed Job. |
| Payload Class | Description |
|---|---|
| Exception | ConnectionException when there is an error |
Creates a Batch using the given objects within the specified Job.
This call uses the Bulk API. The operation will be done in asynchronous fashion.INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| The JobInfo in which the batch will be created. | JobInfo | */* | |||||||||
| OAuth Parameters The following values are always required when using OAuth as the authentication mechanism. | |||||||||||
| Access token identifier used to retrieve an access token from the store | |||||||||||
| Name | Default Value | Description | Java Type |
|---|---|---|---|
| #[payload] | Optional. A list of one or more sObjects objects. This parameter defaults to payload content. | List<Map<String, Object>> |
| Payload Class | Description |
|---|---|
| Exception | ConnectionException when there is an error |
Creates a Batch using the given query.
This call uses the Bulk API. The operation will be done in asynchronous fashion.INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| The JobInfo in which the batch will be created. | JobInfo | */* | |||||||||
| #[payload] | Optional. The query to be executed. | String | */* | UTF-8 | |||||||
| OAuth Parameters The following values are always required when using OAuth as the authentication mechanism. | |||||||||||
| Access token identifier used to retrieve an access token from the store | |||||||||||
| Return Type | Description |
|---|---|
| BatchInfo | A BatchInfo that identifies the batch job. |
| Payload Class | Description |
|---|---|
| Exception | ConnectionException when there is an error |
Creates a Batch using the given stream within the specified Job.
This call uses the Bulk API. The operation will be done in asynchronous fashion.INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| The JobInfo in which the batch will be created. | JobInfo | */* | |||||||||
| #[payload] | Optional. A stream containing the data. This parameter defaults to payload content. | InputStream | */* | ||||||||
| OAuth Parameters The following values are always required when using OAuth as the authentication mechanism. | |||||||||||
| Access token identifier used to retrieve an access token from the store | |||||||||||
| Payload Class | Description |
|---|---|
| Exception | ConnectionException when there is an error |
Adds one or more new records to your organization's data.
This call uses the Bulk API. The creation will be done in asynchronous fashion.INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| Type of object to create | String | */* | UTF-8 | ||||||||
| OAuth Parameters The following values are always required when using OAuth as the authentication mechanism. | |||||||||||
| Access token identifier used to retrieve an access token from the store | |||||||||||
| Name | Default Value | Description | Java Type |
|---|---|---|---|
| #[payload] | Optional. An array of one or more sObjects objects. | List<Map<String, Object>> |
| Return Type | Description |
|---|---|
| BatchInfo | A BatchInfo that identifies the batch job. |
| Payload Class | Description |
|---|---|
| Exception | ConnectionException when there is an error |
Creates a Job in order to perform one or more batches through Bulk API Operations.
INCLUDE_ERROR
INCLUDE_ERROR
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
The OperationEnum that will be executed by the job. |
OperationEnum | */* | |||||||||
| The type of Salesforce object that the job will process. | String | */* | UTF-8 | ||||||||
| Optional. Contains the name of the field on this object with the external ID field attribute for custom objects or the idLookup field property for standard objects (only required for Upsert Operations). | String | */* | UTF-8 | ||||||||
Optional. The Content Type for this Job results. When specifying a content type different from
XML for a query type use queryResultStream(com.sforce.async.BatchInfo)
batchResultStream} method to retrieve results. |
ContentType | */* | |||||||||
| Optional. The concurrency mode of the job, either Parallel or Serial. | ConcurrencyMode | */* | |||||||||
| OAuth Parameters The following values are always required when using OAuth as the authentication mechanism. | |||||||||||
| Access token identifier used to retrieve an access token from the store | |||||||||||
| Payload Class | Description |
|---|---|
| Exception | ConnectionException when there is an error |
Deletes one or more records from your organization's data. The deleted records are not stored in the Recycle Bin. Instead, they become immediately eligible for deletion.
This call uses the Bulk API. The creation will be done in asynchronous fashion.INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| Type of object to update | String | */* | UTF-8 | ||||||||
| OAuth Parameters The following values are always required when using OAuth as the authentication mechanism. | |||||||||||
| Access token identifier used to retrieve an access token from the store | |||||||||||
| Name | Default Value | Description | Java Type |
|---|---|---|---|
| #[payload] | Optional. An array of one or more sObjects objects. | List<Map<String, Object>> |
| Return Type | Description |
|---|---|
| BatchInfo | A BatchInfo that identifies the batch job. |
| Payload Class | Description |
|---|---|
| Exception | ConnectionException when there is an error |
Returns an InputStream with the query results of a submitted BatchInfo
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| The BatchInfo being monitored | BatchInfo | */* | |||||||||
| OAuth Parameters The following values are always required when using OAuth as the authentication mechanism. | |||||||||||
| Access token identifier used to retrieve an access token from the store | |||||||||||
| Return Type | Description |
|---|---|
| InputStream | InputStream with the results of the Batch. |
| Payload Class | Description |
|---|---|
| Exception | ConnectionException when there is an error |
Updates one or more existing records in your organization's data.
This call uses the Bulk API. The creation will be done in asynchronous fashion.INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| Type of object to update | String | */* | UTF-8 | ||||||||
| OAuth Parameters The following values are always required when using OAuth as the authentication mechanism. | |||||||||||
| Access token identifier used to retrieve an access token from the store | |||||||||||
| Name | Default Value | Description | Java Type |
|---|---|---|---|
| #[payload] | Optional. An array of one or more sObjects objects. | List<Map<String, Object>> |
| Return Type | Description |
|---|---|
| BatchInfo | A BatchInfo that identifies the batch job. |
| Payload Class | Description |
|---|---|
| Exception | ConnectionException when there is an error |
Upserts
an homogeneous list of objects: creates new records and updates existing records, using a custom field to determine the presence of existing records.
In most cases, prefer upsert(String, String, List) over create(String, List),
to avoid creating unwanted duplicate records.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| The type of the given objects. The list of objects to upsert must be homogeneous | String | */* | UTF-8 | ||||||||
| Contains the name of the field on this object with the external ID field attribute for custom objects or the idLookup field property for standard objects. | String | */* | UTF-8 | ||||||||
| OAuth Parameters The following values are always required when using OAuth as the authentication mechanism. | |||||||||||
| Access token identifier used to retrieve an access token from the store | |||||||||||
| Name | Default Value | Description | Java Type |
|---|---|---|---|
| #[payload] | Optional. The objects to upsert | List<Map<String, Object>> |
| Return Type | Description |
|---|---|
| BatchInfo | A BatchInfo that identifies the batch job. |
| Payload Class | Description |
|---|---|
| Exception | ConnectionException when there is an error |
Subscribe to a topic.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| The name of the topic to subscribe to | String | */* | UTF-8 | ||||||||
| The callback to be called when a message is received | SourceCallback | */* | |||||||||
| OAuth Parameters The following values are always required when using OAuth as the authentication mechanism. | |||||||||||
| Access token identifier used to retrieve an access token from the store | |||||||||||
| Return Type | Description |
|---|---|
| StopSourceCallback | org.mule.api.callback.StopSourceCallback |