Background
Salesforce
OFFICIAL INTEGRATION

Salesforce Integration

Complete Salesforce integration with full SOQL support

Full SOQL Support

Write native Salesforce Object Query Language queries to retrieve exactly the data you need. No limitations on complexity.

Real-time Sync

Bi-directional sync with Salesforce keeps your data fresh. Changes propagate in real-time via webhooks.

Bulk Operations

Handle millions of records efficiently with Salesforce Bulk API v2 support for large-scale data operations.

OAuth 2.0 + JWT

Secure authentication with OAuth 2.0 flows and JWT bearer tokens for server-to-server integrations.

Supported Objects

Full support for Standard & Custom Objects

Account
Contact
Lead
Opportunity
Case
Task

Overview

Connect to Salesforce with full access to all standard and custom objects. Query, create, update, and sync data using native SOQL — the most powerful Salesforce integration available.

Code Examples

Query Example

// Query all active opportunities with SOQL
const opportunities = await runstrap.salesforce.query(`
  SELECT Id, Name, Amount, CloseDate, StageName, 
         Account.Name, Owner.Email
  FROM Opportunity 
  WHERE IsClosed = false 
    AND Amount > 10000
  ORDER BY CloseDate ASC
  LIMIT 100
`);

Create Example

// Create a new lead
const lead = await runstrap.salesforce.create("Lead", {
  FirstName: "Jane",
  LastName: "Doe",
  Company: "Acme Corp",
  Email: "jane@acme.com",
  LeadSource: "Web",
  Status: "New"
});

Sync Example

// Set up real-time sync for Contact changes
runstrap.salesforce.onRecordChange("Contact", async (event) => {
  const { recordId, changeType, newValues } = event;
  
  await myDatabase.upsert("contacts", {
    salesforce_id: recordId,
    ...newValues,
    updated_at: new Date()
  });
});