Skip to content

Salesforce

Description

Salesforce is a leading cloud-based CRM platform that allows businesses to manage customer data, automate sales, marketing, and support processes, and connect various business operations.

The Salesforce activity in the workflow allows you to perform operations such as querying, inserting, updating, or upserting records using SOQL (Salesforce Object Query Language) or simple object-level data access.

This activity supports bulk processing through Salesforce Bulk API and handles both read and write operations efficiently.

Use this activity to:

  • Query – Execute a custom SOQL query to retrieve Salesforce records.
  • Query All – Similar to Query, but includes records in the recycle bin.
  • Get All – Automatically generates a SOQL query to fetch all fields from a specific object.
  • Insert – Add new records to a Salesforce object.
  • Upsert – Update existing records or insert if they don’t exist using an external key.
  • Delete – Remove records from Salesforce based on the provided data.

Use Case: After collecting form data in a workflow, you can use the Upsert operation to sync the data with Salesforce Leads. Later, use Query to retrieve all leads by region for reporting or further automation.


Input

Input TypeFormatDescription
DataJSONRequired for Insert, Upsert, or Delete operations. Each record is a key-value dictionary representing a row.

Output

Output TypeFormatDescription
DataJSONThe queried records or result of insert/upsert/delete operations.

Configuration Fields

Field NameRequiredDescription
ConnectionYesOAuth connection to Salesforce instance.
OperationYesType of operation: Query, Query All, Get All, Insert, Upsert, Delete.
QueryOptionalSOQL string. Required for Query and Query All operations.
ObjectOptionalSalesforce object name (e.g., Lead, Contact). Required for Insert, Upsert, Get All.
Upsert KeyOptionalExternal ID field for upsert logic. Required if Operation is Upsert.

Sample Input

(for Insert / Upsert)

FirstNameLastNameEmailCompany
AliceWong[email protected]Acme Inc
BobSmith[email protected]Beta Corp

Sample Configuration

FieldValue
ConnectionSalesforce Connection
OperationUpsert
ObjectLead
Upsert KeyEmail

Sample Output

IDSuccessCreated
00Q5g00000Br123truefalse
00Q5g00000Br456truetrue