Close Bulk Job

salesforce.bulk_close_job
ActionCRM & salesconnection required

Calls the Salesforce REST API at the connection's instance URL.

Close an ingest job so Salesforce starts processing it, or abort it.

Connection

Required
Yes — the node will not save without one
Auth type
OAuth 2.0
Providers
Salesforce
Secret shape
{"client_id", "client_secret", "refresh_token"}
Config it needs
login_url, api_version
Resolved by
config.connection_id, else node.connection_id

Configuration

2 fields, 1 required. A dotted path is a nested object and name[] an array of objects — the editor renders the same tree.

FieldTypeRequiredDefaultConstraintsExample
job_id
The ingest job id from salesforce.bulk_create_job. Supports {{ }}.
stringYes———
state
UploadComplete starts the load; Aborted cancels the job.
stringNoUploadCompleteone of "UploadComplete", "Aborted"—

Example configuration

Every value below is the contract’s own example or default — nothing invented.

{
  "state": "UploadComplete"
}

Output

One shape.

result

FieldTypeExample
job_id
The ingest job id.
string—
state
Open, UploadComplete, InProgress, JobComplete, Aborted or Failed.
string—
object
The sObject the job loads.
string—
operation
insert, update, upsert, delete or hardDelete.
string—
created_date
When the job was created.
string—
content_url
Where the CSV batch is uploaded (the batches path).
string—
records_processed
How many records Salesforce has processed so far.
number—
records_failed
How many records failed.
number—
error_message
Why the job failed, when it did.
string—
job_type
V2Ingest for a Bulk API 2.0 ingest job.
string—
content_type
Always CSV for Bulk API 2.0 ingest.
string—
line_ending
LF or CRLF.
string—
column_delimiter
The CSV delimiter the job expects.
string—
{
  "column_delimiter": "",
  "content_type": "",
  "content_url": "",
  "created_date": "",
  "error_message": "",
  "job_id": "",
  "job_type": "",
  "line_ending": "",
  "object": "",
  "operation": "",
  "records_failed": 0,
  "records_processed": 0,
  "state": ""
}

Notes

  • Closing is asynchronous: the job moves to UploadComplete and then InProgress. Poll salesforce.bulk_get_job for JobComplete or Failed.

See Close Bulk Job run in a workflow.

In a technical demo we add the Salesforce connection, drop the node on the canvas and let Workflow Health pre-flight it before the first real run.