Salesforce
Sync people, venues, and organizations from Salesforce into Basker on a schedule, with field mapping and publish conditions
The Salesforce app syncs records from your Salesforce instance into Basker. It creates and updates people, venues, and organizations from the Salesforce objects you choose, on a schedule or on demand. Editors keep working on the synced records in Basker, and the app keeps their drafts when a sync runs.
Beta access
The Salesforce integration is currently in beta. Contact sales to arrange setup for your site. The app appears under Settings → Apps once Basker has enabled it.
Configuring the app needs the permission to manage apps for the site.
Connection
Open the app's API Connection tab and enter:
- Salesforce Instance URL: the address of your Salesforce instance.
- Client ID and Client Secret: the credentials of a connected app in Salesforce. Use a read-only integration user. Basker stores the secret encrypted and shows it masked after you save it.
Click Test and connect. Basker checks the connection and shows Connected, Disconnected, or Connection error with a message. Save the settings to apply the change.
The Sync summary panel shows the latest completed work across all sources. It lists the last success, the next sync, the counts of records fetched, created, updated, and failed, and the Salesforce API calls used.
Mapping Salesforce objects
Open the Object Mapping tab. For each of People, Venues, and Organizations, add one or more sources. A source is one Salesforce object that feeds that record type. Each source has:
- Salesforce object: the object to read, for example Contact or Account.
- Enable scheduled sync: on by default. Turn it off to sync only when you click Sync now.
- Basker fields: one row per Basker field. Set Map From to the Salesforce field, and Sync Behavior to Overwrite on sync (default) or Import once. Import once fills the field the first time and then leaves it for editors.
- Custom attributes: the same mapping for your custom attributes.
- Publish when all conditions match: optional rules that decide whether Basker publishes a synced record. Each rule compares a Salesforce field with a value. A record that fails the rules stays as a draft.
The fields you can map depend on the record type:
| Record type | Basker fields | Required to create |
|---|---|---|
| People | Display name, First name, Last name, Primary role, Biography, Image | Display name |
| Venues | Name, Description, Website, Directions, Country, Address 1, Address 2, City, State, Postal code, Image | Name, Address 1, City, Postal code |
| Organizations | Name, Description, Type, Image | Name |
An Image field accepts a Salesforce field that holds an image URL. Type on organizations accepts the values producer and sponsor.
Running a sync
Basker checks every hour for sources that have scheduled sync turned on and runs them. Click Sync now on a source to run it at once. A sync creates records for new Salesforce rows, updates mapped fields on existing ones, and marks records whose Salesforce row has gone.
If editors have an unsaved draft on a published record, the sync updates the published version and then restores the draft on top of it. Only the mapped fields change. Everything else on the record stays as the editors left it.
Synced records in the editor
A synced record shows a Salesforce group in its sidebar with its Source identifiers. Each identifier lists the Salesforce object, the record ID, its lifecycle state (Active, Inactive, Deleted, or Missing), and when the sync last saw it. To link an existing Basker record to a Salesforce row by hand, choose the Salesforce source and enter the 18-character Salesforce record ID.
Removing a source
Click Remove source on a source. Basker asks what to do with the records that source owns:
- Remove source and keep records: the records stay in Basker as ordinary content.
- Remove source and delete owned records: Basker deletes the records.