Salesforce Bulk v1
Provides integration with the Salesforce Bulk API 2.0 for inserting, updating, upserting and deleting large volumes of records from CSV data.
Revision History
1.1.0.0 Breaking update: added OAuth authentication.
1.1.0.1 Added legacy properties.
1.1.0.2 Fixed lock not being released.
1.1.1.0 Fixed samples not being generated.
1.1.1.1 Fixed token not being refreshed.
1.1.1.6 Added S256 PKCE for OAuth authorization, saved rotated refresh tokens, refreshed expired access tokens during connection tests and removed the legacy Username, Password and SecurityToken connection properties.
See Upgrading Nodes for instructions on how to safely upgrade connections.
Properties
Connection
Type: Connection Input
The Connection Property. Salesforce Bulk uses the same Connection properties as the Salesforce Node.
Url
Type: String
An optional URL for the Salesforce login host, including the scheme. Defaults to https://login.salesforce.com when left blank. This property should only be necessary for Sandbox environments.
ConsumerKey
Type: String
The App Consumer Key (See Creating a Connection below)
ConsumerSecret
Type: Password
The App Consumer Secret (See Creating a Connection below)
Scope
Type: String
A space-delimited list of OAuth scopes sent during authorization. Defaults to full refresh_token offline_access when left blank.
UsePkce
Type: Boolean
Uses S256 Proof Key for Code Exchange for new authorization and reconnect attempts. This property is enabled by default. Disable it only when a legacy Salesforce app does not support PKCE.
AccessToken
Type: Password
A short-lived credential that grants Flowgear access to Salesforce on your behalf. The AccessToken will be automatically populated once the account authentication process is complete.
RefreshToken
Type: Password
A long-lived credential used to obtain a new access token without requiring you to re-authenticate. The RefreshToken will be automatically populated once the account authentication process is complete.
InstanceUrl
Type: String
The base URL of the Salesforce instance that hosts your organisation. The InstanceUrl will be automatically populated once the account authentication process is complete.
ApiVersion
Type: String
The version of the API to use. Defaults to v59.0 when left blank.
The Connection also shows DontInterleaveRequestInResponse and EncodingMode because it is shared with the Salesforce Node. Salesforce Bulk does not use these properties.
Operation
Type: List Input
InitiateIngestJob - Starts a new Bulk API ingest job in Salesforce for inserting, updating, upserting, or deleting records
GetIngestJobStatus - Retrieves the current status of a previously initiated ingest job
GetIngestJobSuccessResults - Returns the list of records that were successfully processed in the ingest job
GetIngestJobFailedResults - Returns the list of records that failed during processing, typically with error messages explaining why
GetIngestJobUnprocessRecords - Retrieves records that were not processed at all, often due to job interruption or format issues
IngestAction
Type: List Input
The action to perform against the object in ObjectName when Operation is InitiateIngestJob.
Insert - Inserts one or more records
Update - Updates one or more records keyed on the Id field
Upsert - Updates or creates one or more records keyed on the field specified in ExternalIdField
Delete - Deletes the records whose Id values are listed in FlatFileDocument
ObjectName
Type: String Input
The name of the object to be acted upon. This property is required when Operation is InitiateIngestJob.
ExternalIdField
Type: String Input
The external ID field used to match records when IngestAction is Upsert. This property is required for Upsert.
RowDelimiter
Type: List Input
The line ending used in FlatFileDocument.
CRLF - Carriage Return followed by Line Feed (\r\n)
LF - Line Feed (\n)
ColumnDelimiter
Type: List Input
The column delimiter used in FlatFileDocument.
COMMA - A comma (,). This is the most common delimiter for CSV files
SEMICOLON - A semicolon (;). Useful when your data fields contain commas and you want to avoid quoting
TAB - A tab character (\t). Often used in TSV (Tab-Separated Values) files and helpful when fields may contain both commas and semicolons
Encapsulator
Type: String Input
Not used by the current Operations.
FlatFileDocument
Type: Multiline Text InputOutput
The CSV data to upload when Operation is InitiateIngestJob. The first row must contain the Salesforce field names. This property is required for InitiateIngestJob.
JobId
Type: String Input
The ID of the job whose status or results you want to retrieve. This property is required for GetIngestJobStatus, GetIngestJobSuccessResults, GetIngestJobFailedResults and GetIngestJobUnprocessRecords.
Query
Type: Multiline Text Input
Not used by the current Operations. Bulk query jobs are not supported.
Response
Type: Multiline Text Output
The response returned by the Salesforce API. InitiateIngestJob and GetIngestJobStatus return the job information as JSON, including the job id to use in JobId. The result Operations return the records as CSV.
Remarks
Use this Node in conjunction with the primary Salesforce Node.
Creating a Connection
Refer to the Salesforce Node remarks for details on how to configure a Connection.
Expired Access Tokens
When Salesforce reports that the session has expired, the Node refreshes the AccessToken using the RefreshToken and retries the request once. Connection tests also refresh an expired AccessToken.