Salesforce Setup Guide
Prerequisites
-
A Salesforce account.
-
API access to Salesforce: an Enterprise plan or higher, or a lower plan with API calls purchased from Salesforce.
-
Field History Tracking enabled (Salesforce's help article on enabling field history tracking shows how).
ℹ️ Note: Matia can sync only what its Salesforce user is allowed to see. So it's best to give Matia its own integration user rather than a teammate's login. That way you decide exactly which objects Matia can read, and its access isn't tied to any one person's account. Step 1 below sets up that user and a read-only profile for it.
Setup Guide
Step 1 (Optional): Create a dedicated user
- Log in to Salesforce with administrative privileges.
- Open Setup from the top-right corner.
- In the left sidebar, open Profiles under Administration.
- Click New Profile.
- Use the Existing Profile drop-down to base the new profile on Read Only.
- In Profile Name, enter
Matia Integration(or any name you prefer). - Click Save to create the profile and open its page.
- In the Profile Detail section, click Edit.
- For each object Matia should sync, select the Read checkbox under Standard Object Permissions.
ℹ️ Note: You must manually select all objects you want to sync. We will not be able to sync objects without the proper permissions.
- Click Save.
- Back in the left sidebar, open Users, also under Administration.
- Click New User and complete the required fields.
- Assign the user the
Matia Integrationprofile (or the name you chose in step 6) using the Profile field.
Step 2: Finish Connector Configuration
- If Session IP Locking is enabled, turn it off: on the Session Settings page in Salesforce, clear Lock sessions to the IP address from which they originated.
- In Matia, choose the Salesforce environment where you want to sync the data.
- Authenticate your Salesforce account with OAuth by clicking on OAuth.
- If using Sandbox, append
.<yourSandboxName>to userName. For example, if your production username isuser@example.comand your Sandbox is nameddev, your Sandbox username would beuser@example.com.dev.
- If using Sandbox, append
- Leave Sync formula fields directly unchecked unless you specifically need it. Turning it on is not recommended, because it could compromise data consistency.
- Enter a Name for the connector.
- (Optional) Enter a Description for the connector.
- Select the Owner of the connector.
- (Optional) Verify that your Salesforce account is successfully connected by clicking on Test Connection.
- Click Connect.
Formula Fields
A formula field's value is not entered by users. Salesforce computes it from other standard or custom fields, following the formula saved in the field's definition. Salesforce does not always update an object’s SystemModStamp when one of its formula fields changes, so an incremental sync can miss those changes. Matia handles this by rewriting the formulas in SQL on its side. Every object with formula fields gets its own SQL model, and three tables record the work:
-
MATIA_FORMULA is the source for translation: it holds every formula exactly as Salesforce defines it.
-
MATIA_FORMULA_FAILURE_REASON lists each formula field Matia could not translate and every reason the translation failed.
-
MATIA_FORMULA_MODEL has the SQL models themselves: a SELECT per object, whose results include both the object's standard fields and the formula fields Matia could compute.
Formula field limitations
-
Supported destinations
SnowflakeBigQuery
-
A formula field is not supported if it depends on a column or table you are not syncing.
-
The following functions are not supported:
- IMAGE
- DAYOFYEAR
- TRUNC
- ASCII
- INITCAP
- PICKLISTCOUNT
- REVERSE
- DISTANCE
- GEOLOCATION
-
Supported Global Variables in formulas:
$Api$Label$Organization$Permission$Profile$System.OriginDateTime$User$UserRole$CustomMetadata$RecordType$Setup
-
Formulas that use the global variables below translate only when the listed tables are synced, so enable those tables on your integration's Schema tab.
GLOBAL VARIABLE DEPENDENT TABLES $OrganizationOrganization $PermissionPermissionSetAssignment, Organization, SetupEntityAccess, CustomPermission $ProfileProfile, User $UserUser $UserRoleUser, UserRole $CustomMetadataThe custom metadata table used in the formula $RecordTypeRecordType $SetupThe custom setting table used in the formula, User