Skip to main content

Salesforce

Read and write Salesforce records via the REST API: SOQL queries, file downloads, and CRUD on any sObject (Account, Contact, Order, Product2, OrderSummary, …).

Salesforce Logo

Authentication​

This connector uses Token-based authentication.

info

Set up your connection in the Abstra Console before using it in your workflows.

How to use​

Using the Smart Chat​

Execute the action "CHOOSE_ONE_ACTION_BELOW" from my connector "YOUR_CONNECTOR_NAME" using the params "PARAMS_HERE".

Using the Web Editor​

from abstra.connectors import run_connection_action

result = run_connection_action(
connection_name="your_connection_name",
action_name="your_action_name",
params={
"param1": "value1",
"param2": "value2"
})

Available Actions​

This connector provides 6 actions:

ActionPurposeParameters
queryExecute a SOQL SELECT statement via the Salesforce REST API. Returns one page of results; pass nextRecordsUrl to fetch subsequent pages.soql (string)
nextRecordsUrl (string)
download_fileDownload the actual file bytes of a Salesforce ContentVersion using the connection credentials. Use query to find ContentVersion.Id or ContentDocument.LatestPublishedVersionId, then pass it as contentVersionId. Querying VersionData only returns the content path, not the file bytes. Returns content base64-encoded bytes, contentType MIME type inferred from FileExtension, falling back to application/octet-stream, size bytes, and fileName when available from PathOnClient or Title + FileExtension. IncontentVersionId (string) required
get_recordRetrieve a single Salesforce sObject record by ID e.g., Account, Contact, Order, Product2, OrderSummary.sobject (string) required
id (string) required
fields (array)
create_recordCreate a new Salesforce sObject record. Returns id, success, errors from Salesforce.sobject (string) required
fields (object) required
update_recordUpdate an existing Salesforce sObject record PATCH. Salesforce returns 204 No Content on success.sobject (string) required
id (string) required
fields (object) required
delete_recordDelete a Salesforce sObject record by ID.sobject (string) required
id (string) required