Salesforce
Send requests to the Salesforce REST, Bulk and Apex APIs, publish events with the Pub/Sub API, and receive events from the Streaming and Pub/Sub APIs.
What’s inside
-
Salesforce component, URI syntax:
salesforce:operationName:topicName
Please refer to the above links for usage and configuration details.
Maven coordinates
<dependency>
<groupId>org.apache.camel.springboot</groupId>
<artifactId>camel-salesforce-starter</artifactId>
</dependency> Spring Boot Auto-Configuration
The starter supports 110 options, which are listed below.
| Name | Description | Default | Type |
|---|---|---|---|
camel.component.salesforce.all-or-none | Whether the SObject Collections operations (compositeCreateSObjectCollections, compositeUpdateSObjectCollections, compositeUpsertSObjectCollections and compositeDeleteSObjectCollections) roll back the whole request when one record fails. The composite, composite-batch and composite-tree operations do not use it. Can be set per message with the CamelSalesforceAllOrNone header. | false | Boolean |
camel.component.salesforce.apex-method | HTTP verb used for the Apex REST invocation, such as GET, POST, PUT, PATCH or DELETE. Applies to the apexCall operation and defaults to GET. Can be overridden per message with the CamelSalesforceApexMethod header. | GET | String |
camel.component.salesforce.apex-query-params | Query parameters to add to the URL of the apexCall operation. The other unknown parameters of an apexCall endpoint URI are added too, a header named CamelSalesforceApexQueryParam. followed by the parameter name adds or overrides one, and a Map body adds its entries. | Object> | |
camel.component.salesforce.apex-url | Path of the Apex REST resource to invoke, appended to /services/apexrest/ on the instance URL, for example MyApexClass/. The apexCall operation needs this value, which can be given as this option, in the endpoint path as apexCall/MyApexClass/, or in the CamelSalesforceApexUrl header. Placeholders written in curly braces are resolved from message headers of the same name. | String | |
camel.component.salesforce.api-version | Salesforce API version, such as 56.0, used in the URLs of the REST, Bulk, Composite and Analytics API calls. The subscribe consumer needs 24.0 or newer and connects to the Streaming API with the version set on the component; getEventSchema needs 40.0 or newer. | 56.0 | String |
camel.component.salesforce.approval | The approval request for the Salesforce Approval API. Options approval.actionType, approval.comments, approval.contextActorId, approval.contextId, approval.nextApproverIds, approval.processDefinitionNameOrId, approval.skipEntryCriteria are bound as nested properties. The option is a org.apache.camel.component.salesforce.api.dto.approval.ApprovalRequest type. | ApprovalRequest | |
camel.component.salesforce.authentication-type | OAuth 2.0 flow to log in with: USERNAME_PASSWORD (needs userName, password and clientSecret), REFRESH_TOKEN (refreshToken), JWT (userName and keystore) or CLIENT_CREDENTIALS (clientSecret); each also needs clientId. When not set, the flow is chosen from the options that are set: password, refreshToken or keystore, or else clientId with clientSecret for CLIENT_CREDENTIALS; the login fails if more than one of password, refreshToken and keystore is set. | AuthenticationType | |
camel.component.salesforce.autowired-enabled | Whether autowiring is enabled. This is used for automatic autowiring options (the option must be marked as autowired) by looking up in the registry to find if there is a single instance of matching type, which then gets configured on the component. This can be used for automatic configuring JDBC data sources, JMS connection factories, AWS Clients, etc. | true | Boolean |
camel.component.salesforce.backoff-increment | Amount, in milliseconds, by which the delay between reconnection attempts grows. For the subscribe consumer (Streaming API), the delay before each handshake or subscribe retry starts at 0; this consumer uses the value set on the component. For the pubSubSubscribe consumer, the delay before subscribing again after an error starts at this value. Login retries use it too. The option is a long type. | 1000 | Long |
camel.component.salesforce.batch-id | Identifies a batch within a Bulk API v1 job. Required by getBatch, getRequest, getResults, getQueryResultIds and getQueryResult unless a BatchInfo message body supplies it. Not used by Bulk API 2.0. | String | |
camel.component.salesforce.bridge-error-handler | Allows for bridging the consumer to the Camel routing Error Handler, which mean any exceptions (if possible) occurred while the Camel consumer is trying to pickup incoming messages, or the likes, will now be processed as a message and handled by the routing Error Handler. Important: This is only possible if the 3rd party component allows Camel to be alerted if an exception was thrown. Some components handle this internally only, and therefore bridgeErrorHandler is not possible. In other situations we may improve the Camel component to hook into the 3rd party component and make this possible for future releases. By default the consumer will use the org.apache.camel.spi.ExceptionHandler to deal with exceptions, that will be logged at WARN or ERROR level and ignored. | false | Boolean |
camel.component.salesforce.client-id | Consumer key (the OAuth client_id) of the Salesforce connected app to log in with. Every authentication flow sends it, and the JWT flow also uses it as the issuer (iss) of the JWT assertion. | String | |
camel.component.salesforce.client-secret | Consumer secret (the OAuth client_secret) of the Salesforce connected app. Required by the USERNAME_PASSWORD and CLIENT_CREDENTIALS flows; the REFRESH_TOKEN flow sends it only when it is set, and the JWT flow does not use it. | String | |
camel.component.salesforce.composite-method | HTTP method of the composite operation when rawPayload is true, for example GET; defaults to POST. Can be set per message with the CamelSalesforceCompositeMethod header. | String | |
camel.component.salesforce.config | Endpoint configuration shared by all the endpoints of this component: each endpoint starts from a copy of it, and the options in the endpoint URI override its values. The option is a org.apache.camel.component.salesforce.SalesforceEndpointConfig type. | SalesforceEndpointConfig | |
camel.component.salesforce.consumer-worker-pool-enabled | Whether the subscribe and pubSubSubscribe consumers hand each received event to a thread pool, so that events are routed in parallel (and can complete out of order), instead of routing them on the thread that received them. Each consumer creates its own pool of consumerWorkerPoolSize to consumerWorkerPoolMaxSize threads. Default for the endpoints of this component. | false | Boolean |
camel.component.salesforce.consumer-worker-pool-executor-service | Thread pool that the subscribe and pubSubSubscribe consumers hand each received event to, so that events are routed in parallel. It is used even when consumerWorkerPoolEnabled is false, and Camel does not shut it down. Default for the endpoints of this component. The option is a java.util.concurrent.ExecutorService type. | ExecutorService | |
camel.component.salesforce.consumer-worker-pool-max-size | Maximum number of threads of the pool that each subscribe or pubSubSubscribe consumer creates when consumerWorkerPoolEnabled is true. Default for the endpoints of this component. | 20 | Integer |
camel.component.salesforce.consumer-worker-pool-size | Core number of threads of the pool that each subscribe or pubSubSubscribe consumer creates when consumerWorkerPoolEnabled is true. Default for the endpoints of this component. | 10 | Integer |
camel.component.salesforce.content-type | Content type of the batch data of the Bulk API v1 createBatch operation, and of createBatchQuery when the body is not a JobInfo: XML, CSV, ZIP_XML or ZIP_CSV (no Content-Type is mapped for JSON and ZIP_JSON). Can be set per message with the CamelSalesforceContentType header. | ContentType | |
camel.component.salesforce.default-replay-id | Replay id the subscribe consumer starts from when neither replayId nor initialReplayIdMap gives one for the channel: -1 receives only new events, -2 all the events Salesforce still retains. | -1 | Long |
camel.component.salesforce.enabled | Whether to enable auto configuration of the salesforce component. This is enabled by default. | Boolean | |
camel.component.salesforce.event-name | Name of the platform event or change event, such as Order_Event__e or AccountChangeEvent, whose schema getEventSchema returns. Can be set per message with the CamelSalesforceEventName header. | String | |
camel.component.salesforce.event-schema-format | Format of the schema that getEventSchema returns: EXPANDED (Apache Avro, but not strict about the record complex type) or COMPACT (follows the Apache Avro specification of the record complex type). EXPANDED is sent when not set; Salesforce accepts this parameter from API version 43.0. Can be set per message with the CamelSalesforceEventSchemaFormat header. | EventSchemaFormatEnum | |
camel.component.salesforce.event-schema-id | Id of the event schema that getEventSchema returns, used when eventName is not set. Can be set per message with the CamelSalesforceEventSchemaId header. | String | |
camel.component.salesforce.fall-back-replay-id | Replay id the subscribe consumer subscribes again with when Salesforce rejects the replay id as invalid, for example because it is too old: -1 for new events only, -2 for all retained events. | -1 | Long |
camel.component.salesforce.fallback-to-latest-replay-id | What the pubSubSubscribe consumer does when Salesforce rejects the replay id as corrupted. When true, it subscribes again with the LATEST preset, so the events in between are skipped. When false, it passes an InvalidReplayIdException to the exception handler of the consumer (use bridgeErrorHandler to handle it in the route) and does not subscribe again. | false | Boolean |
camel.component.salesforce.format | Payload format of the raw operation, JSON or XML: it sets the Accept and Content-Type headers of the request, unless rawHttpHeaders gives them. The other operations ignore it. | PayloadFormat | |
camel.component.salesforce.http-client | Custom SalesforceHttpClient (a Jetty HTTP client) to use. Set on the component, it replaces the client the component creates; set on an endpoint, only the Bulk, Bulk 2.0, Analytics, Composite and SObject Collections operations use it. The option is a org.apache.camel.component.salesforce.SalesforceHttpClient type. | SalesforceHttpClient | |
camel.component.salesforce.http-client-connection-timeout | Timeout in milliseconds for the Jetty HttpClient to open a connection to the Salesforce server (or to the proxy). 0 means no timeout. | 60000 | Long |
camel.component.salesforce.http-client-idle-timeout | Idle timeout in milliseconds of the connections of the Jetty HttpClient: a connection on which no bytes are sent or received for this long is closed, which fails a request that is still waiting for its response. 0 means no idle timeout. The Streaming API long polling requests are not subject to it. | 10000 | Long |
camel.component.salesforce.http-client-properties | Bean properties to set on the HTTP client of the component (a SalesforceHttpClient, which is a Jetty HttpClient), for example maxConnectionsPerDestination or followRedirects. It also takes the timeout, size and proxy settings under the keys of the HTTP_ constants of SalesforceComponent (such as httpIdleTimeout or httpProxyHost), which take precedence over the component options. | Object> | |
camel.component.salesforce.http-max-content-length | Maximum size in bytes of the body of a Salesforce API response, which the component buffers in memory; a larger response fails. When not set, 4194304 (4 MB) is used. | Integer | |
camel.component.salesforce.http-proxy-auth-uri | URI of the proxy that the proxy credentials apply to: the Jetty HttpClient sends them only to a proxy with the same scheme, host and port, so give http://host:port, or https://host:port when httpProxySecure is true, without a path. Required when httpProxyUsername and httpProxyPassword are set. | String | |
camel.component.salesforce.http-proxy-excluded-addresses | Destinations not to send through the proxy, each a host or host:port that must match the destination exactly (no wildcards). An excluded destination is not proxied even when it is also included. | String> | |
camel.component.salesforce.http-proxy-host | Host name of the HTTP (or SOCKS4) proxy that the Jetty HttpClient connects through. The proxy is used only when httpProxyPort is set as well. It does not apply to the Pub/Sub API. | String | |
camel.component.salesforce.http-proxy-included-addresses | Destinations to send through the proxy, each a host or host:port that must match the destination exactly (no wildcards). When empty, every destination goes through the proxy, except the excluded ones. | String> | |
camel.component.salesforce.http-proxy-password | Password to authenticate to the proxy with, used together with httpProxyUsername. | String | |
camel.component.salesforce.http-proxy-port | Port of the HTTP (or SOCKS4) proxy. The proxy is used only when httpProxyHost is set as well. | Integer | |
camel.component.salesforce.http-proxy-realm | Realm that the proxy credentials apply to: it must match the realm in the Basic or Digest challenge (the Proxy-Authenticate header) of the proxy. The credentials are sent in answer to that challenge, not preemptively. Required when httpProxyUsername and httpProxyPassword are set. | String | |
camel.component.salesforce.http-proxy-secure | Whether the connection to the proxy itself uses TLS. Set it to false for a proxy that accepts plain (non-TLS) connections; the connections to Salesforce through the proxy use TLS either way. | true | Boolean |
camel.component.salesforce.http-proxy-socks4 | If true, the proxy is a SOCKS4 proxy instead of an HTTP proxy. | false | Boolean |
camel.component.salesforce.http-proxy-use-digest-auth | If true, the proxy credentials are used for Digest authentication, otherwise for Basic authentication. | false | Boolean |
camel.component.salesforce.http-proxy-username | User name to authenticate to the proxy with, used together with httpProxyPassword. Both httpProxyAuthUri and httpProxyRealm are then required. | String | |
camel.component.salesforce.http-request-buffer-size | Size in bytes of the buffer that the Jetty HttpClient writes the request line and headers into; a larger value also raises the maximum size of the request headers. Increase it for long SOQL queries, which are sent in the URL. | 8192 | Integer |
camel.component.salesforce.http-request-timeout | Total timeout in milliseconds of each request and response exchange of the Salesforce REST, Bulk, Composite, Analytics and raw API calls, and of the login and logout requests. 0 or a negative value means no timeout. It does not apply to the Streaming API and Pub/Sub API. | 60000 | Long |
camel.component.salesforce.include-details | Whether executeSyncReport and executeAsyncReport return the detail rows of the report as well as the summary (the includeDetails parameter). When not set, the parameter is not sent and the Salesforce default (false) applies. Can be set per message with the CamelSalesforceIncludeDetails header. | Boolean | |
camel.component.salesforce.initial-replay-id-map | Replay ids that the subscribe consumer starts from, per channel, keyed by topic name or channel name (such as /topic/MyTopic or /event/Order_Event__e). They take precedence over defaultReplayId, and replayId takes precedence over them. | Long> | |
camel.component.salesforce.initial-reply-id-timeout | Deprecated: has no effect, as nothing reads it. It was the time in seconds to validate a custom pubSubReplayId when a Pub/Sub API consumer starts. | 30 | Integer |
camel.component.salesforce.instance-id | Id of the report instance whose results getReportResults returns, as returned by executeAsyncReport. Can be set per message with the CamelSalesforceInstanceId header. | String | |
camel.component.salesforce.instance-url | Base URL of the Salesforce instance (org) to send the API calls to, for example https://mydomain.my.salesforce.com. When not set, the instance_url that Salesforce returns in the OAuth token response at login is used. | String | |
camel.component.salesforce.job-id | Identifies the Bulk API job to act on, for Bulk API v1 operations such as getJob, closeJob, abortJob, createBatch and getResults, and for the bulk2 operations that target an existing job. Operations that accept a JobInfo or BatchInfo message body can take the id from there instead. | String | |
camel.component.salesforce.jwt-audience | Audience (aud) claim of the JWT assertion in the OAuth 2.0 JWT bearer flow. When not set, the loginUrl is used; set it when the authorization server expects another audience, for example https://login.salesforce.com or https://test.salesforce.com when loginUrl is a My Domain URL. | String | |
camel.component.salesforce.keystore | KeyStore with the private key that signs the JWT assertion (RS256) in the OAuth 2.0 JWT bearer flow (JWT). The KeyStore must hold exactly one private key entry, whose key password is the KeyStore password. Upload the matching certificate (a self-signed one is fine) to the connected app. The option is a org.apache.camel.support.jsse.KeyStoreParameters type. | KeyStoreParameters | |
camel.component.salesforce.lazy-login | If true, the component neither checks the login options nor logs in to Salesforce when it starts; it logs in when a producer processes its first message, so login problems only show up then. The subscribe and pubSubSubscribe consumers fail to start when this is true. | false | Boolean |
camel.component.salesforce.lazy-start-producer | Whether the producer should be started lazy (on the first message). By starting lazy you can use this to allow CamelContext and routes to startup in situations where a producer may otherwise fail during starting and cause the route to fail being started. By deferring this startup to be lazy then the startup failure can be handled during routing messages via Camel’s routing error handlers. Beware that when the first message is processed then creating and starting the producer may take a little time and prolong the total processing time of the processing. | false | Boolean |
camel.component.salesforce.limit | Maximum number of items that the recent operation returns (the limit parameter). Can be set per message with the CamelSalesforceLimit header or the body. | Integer | |
camel.component.salesforce.locator | Locator of the next set of results of a Bulk API 2.0 query job for bulk2GetQueryJobResults, from the Sforce-Locator header of the previous response (which the producer copies into the message headers). Can be set per message with the CamelSalesforceLocator header. | String | |
camel.component.salesforce.login-config | All the login options in one SalesforceLoginConfig bean: loginUrl, instanceUrl, clientId, clientSecret, userName, password, refreshToken, keystore, jwtAudience, authenticationType (its type property) and lazyLogin. When it is set, the component options of the same names are ignored. The option is a org.apache.camel.component.salesforce.SalesforceLoginConfig type. | SalesforceLoginConfig | |
camel.component.salesforce.login-url | URL of the Salesforce OAuth 2.0 authorization server to log in at: the component posts the token request to this URL followed by /services/oauth2/token. Use https://test.salesforce.com for a sandbox, or the My Domain URL of the org. A trailing slash is removed. It is also the audience of the JWT assertion when jwtAudience is not set. | String | |
camel.component.salesforce.long-polling-transport-properties | Options of the CometD client transport (JettyHttpClientTransport) of the Streaming API (subscribe) consumers, for example maxNetworkDelay (120000 ms by default here) or maxMessageSize. | Object> | |
camel.component.salesforce.max-backoff | Upper limit, in milliseconds, of the delay between reconnection attempts. The subscribe consumer (Streaming API) stops retrying the handshake or subscription once the delay exceeds it; this consumer uses the value set on the component. The pubSubSubscribe consumer keeps retrying with at most this delay. Login retries wait at most this long. The option is a long type. | 30000 | Long |
camel.component.salesforce.max-records | Maximum number of records per set of results that bulk2GetQueryJobResults returns (the maxRecords parameter); when not set, Salesforce decides. A smaller value avoids timeouts with very large results; get the next set with locator. Can be set per message with the CamelSalesforceMaxRecords header. | Integer | |
camel.component.salesforce.not-found-behaviour | What the REST operations, such as getSObject, getSObjectWithId, query and apexCall, do when Salesforce answers 404 Not Found: EXCEPTION fails the exchange with a NoSuchSObjectException, NULL sets the message body to null. | exception | NotFoundBehaviour |
camel.component.salesforce.notify-for-fields | NotifyForFields of the PushTopic that the subscribe consumer creates or updates: which fields Salesforce evaluates to decide whether a change matches the query, ALL, REFERENCED, SELECT or WHERE. When not set, the Salesforce default applies. | NotifyForFieldsEnum | |
camel.component.salesforce.notify-for-operation-create | Whether creating a record generates a notification: the NotifyForOperationCreate field of the PushTopic that the subscribe consumer creates or updates. For API version 29.0 or newer; with an older version it fails the start of the consumer. When not set, the field is not sent and the Salesforce default applies. | Boolean | |
camel.component.salesforce.notify-for-operation-delete | Whether deleting a record generates a notification: the NotifyForOperationDelete field of the PushTopic that the subscribe consumer creates or updates. For API version 29.0 or newer; with an older version it fails the start of the consumer. When not set, the field is not sent and the Salesforce default applies. | Boolean | |
camel.component.salesforce.notify-for-operation-undelete | Whether undeleting a record generates a notification: the NotifyForOperationUndelete field of the PushTopic that the subscribe consumer creates or updates. For API version 29.0 or newer; with an older version it fails the start of the consumer. When not set, the field is not sent and the Salesforce default applies. | Boolean | |
camel.component.salesforce.notify-for-operation-update | Whether updating a record generates a notification: the NotifyForOperationUpdate field of the PushTopic that the subscribe consumer creates or updates. For API version 29.0 or newer; with an older version it fails the start of the consumer. When not set, the field is not sent and the Salesforce default applies. | Boolean | |
camel.component.salesforce.notify-for-operations | NotifyForOperations of the PushTopic that the subscribe consumer creates or updates: ALL, CREATE, EXTENDED or UPDATE. Only for API versions before 29.0; with 29.0 or newer it fails the start of the consumer, use the notifyForOperation options instead. | NotifyForOperationsEnum | |
camel.component.salesforce.object-mapper | Custom Jackson ObjectMapper to marshal and unmarshal the JSON of the REST, Composite, SObject Collections and Bulk 2.0 operations and of the subscribe consumer, for example to register more modules. The option is a tools.jackson.databind.ObjectMapper type. | ObjectMapper | |
camel.component.salesforce.packages | Comma-separated list of Java packages to scan for the DTO classes generated by camel-salesforce-maven-plugin, so that an SObject name given in sObjectName or in a header maps to its DTO class. Without it, give the DTO class with sObjectClass, or use rawPayload=true. | String | |
camel.component.salesforce.password | Password of the Salesforce user for the OAuth 2.0 username-password flow (USERNAME_PASSWORD). If the user has a security token, append it to the password. Salesforce advises against this flow, as it passes the credentials in the request; prefer the JWT, refresh token or client credentials flow. | String | |
camel.component.salesforce.pk-chunking | Whether the Bulk API v1 operations send the Sforce-Enable-PKChunking header, so that Salesforce splits a bulk query job on the record ids into several batches. Salesforce acts on it when createJob creates the job. Bulk API 2.0 does PK chunking by itself. Can be set per message with the CamelSalesforcePkChunking header. | false | Boolean |
camel.component.salesforce.pk-chunking-chunk-size | Number of records per chunk with pkChunking, sent as chunkSize in the Sforce-Enable-PKChunking header. Salesforce defaults to 100,000 and allows up to 250,000. | Integer | |
camel.component.salesforce.pk-chunking-parent | Parent object for pkChunking of a query on a sharing object, sent as parent in the Sforce-Enable-PKChunking header: the chunks are based on the records of the parent object, for example Account for AccountShare. | String | |
camel.component.salesforce.pk-chunking-start-row | 15-character or 18-character record id to use as the lower boundary of the first chunk with pkChunking, sent as startRow in the Sforce-Enable-PKChunking header, for example to restart a job that failed between batches. | String | |
camel.component.salesforce.pub-sub-batch-size | Number of events the pubSubSubscribe consumer asks for in each FetchRequest (num_requested); after each response it asks for more, to keep this many requested. Salesforce accepts at most 100. | 100 | Integer |
camel.component.salesforce.pub-sub-deserialize-type | How the pubSubSubscribe consumer turns the Avro payload of an event into the message body. AVRO gives a SpecificRecord when a generated class named after the schema is in the com.sforce.eventbus package, otherwise a GenericRecord; SPECIFIC_RECORD always that SpecificRecord class; GENERIC_RECORD a GenericRecord; POJO an object of pubSubPojoClass, read with Avro reflection; JSON the event as JSON text. | avro | PubSubDeserializeType |
camel.component.salesforce.pub-sub-host | Host name of the Salesforce Pub/Sub API gRPC service used by the pubSubSubscribe and pubSubPublish operations. Give a bare host name, without scheme or port. | api.pubsub.salesforce.com | String |
camel.component.salesforce.pub-sub-pojo-class | Fully qualified name of the class that the pubSubSubscribe consumer reads events into, with Avro reflection, when pubSubDeserializeType is POJO. | String | |
camel.component.salesforce.pub-sub-port | TCP port of the Salesforce Pub/Sub API gRPC service used by the pubSubSubscribe and pubSubPublish operations. | 7443 | Integer |
camel.component.salesforce.pubsub-allow-use-system-proxy | Whether the Pub/Sub API gRPC client may connect through the proxy that the default java.net.ProxySelector of the JVM returns for the Pub/Sub host (for example from the https.proxyHost and https.proxyPort system properties). If false, it connects directly. The httpProxy options do not apply to the Pub/Sub API. | true | Boolean |
camel.component.salesforce.query-locator | Query locator of the next page of jobs for bulk2GetAllJobs and bulk2GetAllQueryJobs: the queryLocator value in the nextRecordsUrl of the previous result, when its done property is false. Can be set per message with the CamelSalesforceQueryLocator header. | String | |
camel.component.salesforce.raw-http-headers | Comma-separated names of the message headers that the raw operation sends as HTTP headers, for example to set Accept or Content-Type. | String | |
camel.component.salesforce.raw-method | HTTP method of the raw operation, such as GET, POST, PATCH or DELETE. Can be set per message with the CamelSalesforceRawMethod header. | String | |
camel.component.salesforce.raw-path | Path of the request of the raw operation, appended to the instance URL, for example /services/data/v56.0/sobjects/Account/. Can be set per message with the CamelSalesforceRawPath header. | String | |
camel.component.salesforce.raw-payload | Whether to work with the JSON as is instead of DTOs. The REST, apexCall and composite operations give the response as an InputStream (composite then also sends the body as is), and the subscribe consumer gives the message as JSON text: the sObject of a PushTopic event, or the whole message of a platform or change event. | false | Boolean |
camel.component.salesforce.raw-query-parameters | Comma-separated names of the message headers that the raw operation sends as query parameters of the same name. The values are URL-encoded, so do not encode them. A missing header fails the request. | String | |
camel.component.salesforce.refresh-token | Refresh token for the OAuth 2.0 refresh token flow (REFRESH_TOKEN), which the component exchanges for an access token at each login. Obtain it beforehand with an OAuth flow of the connected app that has the refresh_token (offline_access) scope, for example with the callback URL https://login.salesforce.com/services/oauth2/success (https://test.salesforce.com/services/oauth2/success for a sandbox), which shows the refresh_token in its URL at the end of the flow. | String | |
camel.component.salesforce.replay-preset | Where the pubSubSubscribe consumer starts in the event stream: LATEST receives only new events, EARLIEST all the events Salesforce still retains, CUSTOM the events after pubSubReplayId, which it requires. After an error, the consumer subscribes again after the last event it received. | latest | ReplayPreset |
camel.component.salesforce.report-id | Id of the report for the Analytics API operations getReportDescription, executeSyncReport, executeAsyncReport, getReportInstances and getReportResults. When neither this option nor the CamelSalesforceReportId header is set, the body is used, or the id of a ReportMetadata body for the execute operations. | String | |
camel.component.salesforce.report-metadata | Report metadata, such as filters, to run executeSyncReport or executeAsyncReport with, instead of the saved settings of the report. A ReportMetadata body takes precedence. Can be set per message with the CamelSalesforceReportMetadata header. The option is a org.apache.camel.component.salesforce.api.dto.analytics.reports.ReportMetadata type. | ReportMetadata | |
camel.component.salesforce.result-id | Identifies one result set of a completed Bulk API v1 query batch, as returned by the getQueryResultIds operation. Used only by getQueryResult, together with jobId and batchId. | String | |
camel.component.salesforce.s-object-blob-field-name | Name of the blob field that getBlobField downloads, such as Body of an Attachment or VersionData of a ContentVersion. Can be set per message with the CamelSalesforceSObjectBlobFieldName header. | String | |
camel.component.salesforce.s-object-class | Fully qualified name of the DTO class to unmarshal the response to, usually generated by the camel-salesforce-maven-plugin; for query, queryAll and queryMore a QueryRecords class. Used by the SObject, query, apexCall and compositeRetrieveSObjectCollections operations, and by the subscribe consumer for PushTopic records. When neither this nor sObjectName is set, the producer looks up the class in packages by the type in the response. Can be set per message with the CamelSalesforceSObjectClass header. | String | |
camel.component.salesforce.s-object-fields | Comma-separated list of the fields to return: for getSObject (all fields when not set), and for compositeRetrieveSObjectCollections, which requires it. Can be set per message with the CamelSalesforceSObjectFields header. | String | |
camel.component.salesforce.s-object-id | Id of the record for getSObject, updateSObject, deleteSObject and getBlobField. When the body is a DTO, its Id field is used instead; when neither this option nor the CamelSalesforceSObjectId header is set, the body is the id. | String | |
camel.component.salesforce.s-object-id-name | Name of the external ID field that identifies the record, for getSObjectWithId, upsertSObject, deleteSObjectWithId and compositeUpsertSObjectCollections. Can be set per message with the CamelSalesforceSObjectIdName header. | String | |
camel.component.salesforce.s-object-id-value | Value of the external ID field (sObjectIdName) that identifies the record, for getSObjectWithId, upsertSObject and deleteSObjectWithId. When the body is a DTO, the value of that field in the DTO is used; otherwise this option, the CamelSalesforceSObjectIdValue header or, except for upsertSObject, the body. | String | |
camel.component.salesforce.s-object-name | Name of the SObject, such as Account or Merchandise__c, for the SObject operations (such as getSObject, createSObject, upsertSObject, getBasicInfo and getDescription) and the SObject Collections operations. It also selects the DTO class of that name in packages to unmarshal the response to, and for the subscribe consumer the class of the PushTopic records. When not set, the simple class name of a DTO body is used. Can be set per message with the CamelSalesforceSObjectName header. | String | |
camel.component.salesforce.s-object-query | SOQL query for query, queryAll and the Bulk API v1 createBatchQuery; for queryMore, the nextRecordsUrl of the previous result. When neither this option nor the CamelSalesforceSObjectQuery header is set, the producer uses the body. For the subscribe consumer, the query of the PushTopic to create or update. | String | |
camel.component.salesforce.s-object-search | SOSL search for the search operation. When neither this option nor the CamelSalesforceSObjectSearch header is set, the body is used. | String | |
camel.component.salesforce.ssl-context-parameters | TLS configuration of the HTTP client that the component creates, which logs in and calls the REST, Bulk and Streaming APIs. When not set, the global SSLContextParameters are used if useGlobalSslContextParameters is true, otherwise the default trust store of the JVM. It does not apply to the Pub/Sub API, nor to a custom httpClient. The option is a org.apache.camel.support.jsse.SSLContextParameters type. | SSLContextParameters | |
camel.component.salesforce.stream-query-result | Whether query and queryAll give an Iterator over all the matching records instead of one page of results: the following pages are fetched while iterating. Also sets the CamelSalesforceQueryResultTotalSize header. Can be set per message with the CamelSalesforceStreamQueryResult header. | false | Boolean |
camel.component.salesforce.update-topic | Whether the subscribe consumer updates an existing PushTopic whose query or notifyFor* settings differ from those of the endpoint. When false, such a difference fails the start of the consumer. Only used when sObjectQuery is set. | false | Boolean |
camel.component.salesforce.use-global-ssl-context-parameters | Whether the HTTP client that the component creates uses the global SSLContextParameters of the CamelContext when sslContextParameters is not set. | false | Boolean |
camel.component.salesforce.user-name | User name of the Salesforce user to log in as: the username of the OAuth 2.0 username-password flow (USERNAME_PASSWORD), and the subject (sub) of the JWT assertion in the JWT flow. | String | |
camel.component.salesforce.worker-pool-max-size | Maximum number of threads of the pool on which the HTTP client that the component creates runs the response callbacks of the Salesforce API calls, the login retries and the Streaming API (CometD) listeners. Not used when a custom httpClient is set. | 20 | Integer |
camel.component.salesforce.worker-pool-size | Core number of threads of the pool on which the HTTP client that the component creates runs the response callbacks of the Salesforce API calls, the login retries and the Streaming API (CometD) listeners. Not used when a custom httpClient is set. | 10 | Integer |