Skip to content

Salesforce

Mercura connects directly to your Salesforce org: customers and contacts, requests and orders come in from Salesforce, and status, quotes and opportunities go back. Like the other chapters under Ready-made connections, this is not an endpoint of the Mercura API. Mercura calls Salesforce, and Salesforce never calls Mercura.

There is no package to install in Salesforce. You create an External Client App and an integration user in your org. Everything else is configured in Mercura under Settings → Integrations → Salesforce. Each data flow has its own switch there, so you can start with one part and add more later.

Data flows between Salesforce and Mercura: Accounts and Contacts, requests, cancellations and orders flow from Salesforce to Mercura; status, quotes and new Opportunities flow from Mercura to Salesforce.

Data flowDirectionTriggerResult
Customers and ContactsSalesforce → MercuraSchedule: hourly or nightlyAccounts become Mercura customers, their Contacts become contact persons
RequestsSalesforce → MercuraRule matched or send flag tickedNew request with the record's files; link written back to Salesforce
Status to SalesforceMercura → SalesforceRequest status changesValue in a field of the record, e.g. the stage
Cancel from SalesforceSalesforce → MercuraRecord gets a cancel valueRequest cancelled in Mercura
Quote to SalesforceMercura → SalesforceRequest exported in MercuraQuote with lines, or Opportunity products
Opportunities for other requestsMercura → SalesforceExport of a request from e-mail or another channelQuote under an existing or new Opportunity of the customer
Orders from SalesforceSalesforce → MercuraDraft Order matches the rule or send flag tickedMercura order; order status written back until the Order is activated

Which system leads which data. Salesforce leads customers, contacts, products and prices. Mercura reads them and does not change them. The positions of a request, the article matching and the order capture happen in Mercura. Pricing, approval and sending of the quote stay in Salesforce. Mercura writes only to the fields and objects you name in the configuration.

How the connection works

  • Authentication. Mercura signs in to your External Client App with OAuth 2.0 (client credentials flow). Salesforce runs every call as the app's Run-As user, so Mercura sees and writes exactly what that user may. There is no interactive login and no refresh token. Mercura stores the consumer secret encrypted.
  • Polling. Every five minutes Mercura checks through the Salesforce REST API which records have changed. Only records that change after a data flow is switched on are taken in; Mercura does not import older records retroactively.
  • No credentials in Salesforce. No Mercura key is stored in your org, and no Mercura triggers or scheduled jobs run there.
  • Sandbox and production. A sandbox is connected the same way; its My Domain URL contains .sandbox. We recommend connecting a sandbox to a Mercura test organisation first.