DocsIntegrations

Salesforce

Salesforce lets Mobius assistants query, search, inspect, and update standard, custom, and Financial Services Cloud CRM records.

A Salesforce integration connects a Salesforce org — Production, Sandbox, or a free forever Salesforce Developer Edition org — directly to Mobius over the Salesforce REST API. Assistants can run SOQL queries, search across objects with SOSL, inspect standard and custom object schemas (including Financial Services Cloud objects such as FinServ__FinancialAccount__c), and read or update CRM records.

Capability map

CapabilityValue
Provider IDsalesforce
Auth kindapi_key
Connect flowInline OAuth 2.0 Client Credentials or Refresh Token
ActionsYes
EventsNo
Webhook deliveryNo
Event samplesNo
Live statusYes

Connect Salesforce

Mobius supports two server-to-server OAuth 2.0 credential flows, so you can connect any Salesforce org without platform-level OAuth app review.

Works on Production, Sandbox, and free Salesforce Developer Edition orgs.

  1. In Salesforce Setup, open Apps > External Client Apps (or App Manager > New Connected App).
  2. Enable OAuth Settings, choose scopes that include Manage user data via APIs (api), and check Enable Client Credentials Flow.
  3. Save the app, then open Manage > Edit Policies and assign an integration user under Client Credentials Flow > Run As.
  4. Copy your My Domain URL (for example https://your-org.my.salesforce.com or https://your-org-dev-ed.develop.my.salesforce.com), Consumer Key (client_id), and Consumer Secret (client_secret).
  5. In Mobius, open Settings > Connected accounts, choose Salesforce, and paste the Instance URL, Client ID, and Client Secret. Leave Refresh token blank.

Option 2: OAuth 2.0 Refresh Token Flow

Use this flow if your Salesforce security policy prefers a delegated refresh token instead of Client Credentials.

  1. Create an External Client App or Connected App with the api and refresh_token (offline_access) OAuth scopes.
  2. Complete one authorization exchange to obtain a refresh token for the integration user.
  3. In Mobius, open Settings > Connected accounts, choose Salesforce, and enter Instance URL, Client ID, Client Secret, and Refresh token.
SurfaceSupport
AppOpen Settings > Connected accounts, choose Salesforce, and submit your OAuth credentials.
CLIInspect actions with mobius catalog get-action salesforce.query.
APICall POST /v1/integrations with provider salesforce and credentials of { "instance_url", "client_id", "client_secret", "refresh_token?" }.

Mobius validates your credentials live by querying the Salesforce Organization object before saving. Secrets (client_id, client_secret, and optional refresh_token) are encrypted at rest and never stored in plaintext config. Access tokens are cached in memory and refreshed automatically on expiration.

Only valid HTTPS Salesforce domains (.salesforce.com, .my.salesforce.com, .salesforce.mil, and .force.com) are accepted for instance_url.

Then grant the connection to the assistants that should use it under Assistant access.

Actions

salesforce.query
salesforce.search
salesforce.object.describe
salesforce.record.get
salesforce.record.create
salesforce.record.update
salesforce.record.upsert
salesforce.record.delete
ActionModeWhat it does
salesforce.queryRead-onlyRuns a SOQL SELECT query (or continues pagination via next_records_url). Returns up to 100 rows per call.
salesforce.searchRead-onlyRuns a SOSL FIND query across multiple objects in a single call.
salesforce.object.describeRead-onlyReturns curated object capabilities, field API names, required flags, External ID flags, reference targets, and active picklist values. Supports field_filter, custom_only, and required_only.
salesforce.record.getRead-onlyFetches one record by sObject API name and 15- or 18-character ID, with optional field selection.
salesforce.record.createWriteInserts a new record into any standard, custom, or Financial Services Cloud object.
salesforce.record.updateWriteApplies a partial field update to an existing record ID.
salesforce.record.upsertWriteInserts or updates a record idempotently using an External ID field.
salesforce.record.deleteDestructiveDeletes a record into the Salesforce Recycle Bin. Assistants set to ask before destructive calls request approval first.

Custom objects and Financial Services Cloud

Every action accepts standard objects (Account, Contact, Opportunity, Lead, Case, Task, Event), custom objects (__c), and managed-package objects such as Salesforce Financial Services Cloud (FinServ__FinancialAccount__c, FinServ__AssetsAndLiabilities__c, FinServ__FinancialGoal__c).

Before querying custom fields or writing to a customized object, assistants call salesforce.object.describe with field_filter or custom_only: true to read exact API names, required fields, and active picklist values.

Troubleshooting

"Salesforce rejected these credentials (invalid_client or invalid_grant)"

  • Verify your Instance URL is your org's My Domain origin (for example https://acme.my.salesforce.com, not a Lightning page path).
  • For Client Credentials Flow, confirm Enable Client Credentials Flow is checked on the Connected App or External Client App and that a Run As user is assigned in OAuth Policies.
  • For Refresh Token Flow, confirm the Connected App includes the refresh_token scope and that the token has not been revoked.

INVALID_FIELD or picklist errors on writes

Run salesforce.object.describe for the target object to confirm the exact field API name, check that the integration user's profile or permission set has Field-Level Security access, and use an active value from picklist_values.

Next

  • Grant Salesforce access to an assistant from Connect accounts.
  • Control approval prompts for writes and deletes in actions.