Skip to content

Salesforce

Who can do this: repository admins, and a Salesforce administrator.

The Salesforce connector reads records and files of a Salesforce org. Available on Scale. It keeps no password or secret of your org: it signs in with ContentSurface’s certificate as one integration user, whose permissions are the limit of what it can read.

Plan Scale
Reads Records of the objects you define and mount, their files, and libraries — within what the integration user may see, including field-level security
Does not read Anything the integration user cannot see; objects you have not defined; Salesforce sharing for access decisions
Reaches it through One API-only integration user, signed in with ContentSurface’s certificate (JWT bearer flow); no password or secret of your org is kept
Limits Enterprise, Unlimited, Performance or Developer edition (Professional with the API add-on). Reading uses the org’s daily API requests, with a reserve you set for your other integrations

Limits common to every connector — indexed text per document, file size for extraction, OCR — are in Connectors.

  1. Integration user — a dedicated API-only user, with a permission set giving Read and View All Records on each object you will mount or use in a hierarchy, and API Enabled. Field-level security decides which fields it sees. For files, it must see the linked records; for a library, make it a member.
  2. External Client App — local, with OAuth enabled, the scopes api and refresh_token, offline_access, the JWT Bearer Flow, and Use digital signatures with ContentSurface’s certificate (Download certificate in the Portal). Pre-authorize the integration user’s permission set, and copy the app’s consumer key.

A Salesforce connection with its org settings and the certificate to download

  1. Connections → New connection → Salesforce: My Domain (such as acme.my.salesforce.com), Org ID (00D…), Consumer key, Integration user, Sandbox org if it is one, and optionally the API reserve — the share of the org’s daily API requests left to your other integrations.
  2. Check: healthy means the org issued a token for the integration user.
  3. Under Document types, define each object you want, confirming the proposed name field, dates and users; see Document types and hierarchy.
  4. New mount point: an object (Account), one record (its ID, 001…), or a library (058…). An object not defined yet offers Define… right there, with the same proposals.
  5. Optionally, a hierarchy on Account shows opportunities, contacts and their files below each account. Each object’s Lookups propose the relations; details such as opportunity products are proposed as Owned.
  6. Mount it, preview, and activate.

Changes are picked up every few minutes: changed and deleted records from Salesforce’s change tracking, and deleted files and files linked to or removed from a record by comparing each record’s linked files — a few API requests per thousand records shown as folders. Every folder is also rescanned once a day as a safety net. The connection’s Next steps track these steps and show the Salesforce steps until the check passes.

Check says Fix
Authentication failed Is the uploaded certificate ContentSurface’s current one, the JWT bearer flow on with both scopes, the user pre-authorized?
Wrong org The org ID or My Domain belongs to another org.
API budget exhausted The org’s remaining daily API requests are below the reserve; crawls resume by themselves, downloads keep working.

ContentSurface announces a new certificate well before the current one expires: upload it to the app when the Portal shows A new ContentSurface certificate.

Remove the permission set from the app, deactivate the integration user, or delete the certificate or the app. Crawling stops at the next call.

In the API

The Portal does this through these calls; an integration can make them directly.

OperationCall
The vendor certificate a Salesforce org's External Client App trusts: its public part as PEM, never the key.GET /v1/admin/connectors/salesforce/certificate
Creates a connection; its connector type and source location are fixed.POST /v1/admin/connections
Tests reachability and authentication of the source.POST /v1/admin/connections/{id}/check
Where browsing starts: the connector's source roots.GET /v1/admin/connections/{id}/source-roots
The child containers of a source location, for choosing a mount point.GET /v1/admin/connections/{id}/browse
Validates a location through the connector and creates a mount point on it.POST /v1/admin/connections/{id}/mount-points