Skip to main content

Introduction

Qobra connects to Salesforce through a connected app, which needs to be installed via an OAuth check. The integration is used to synchronize all objects, their fields and their content. The integration supports standard or custom objects, and standard or custom fields in those objects. This integration is readonly and does not write anything in your Salesforce.

Access

OAuth authentication & scopes

To connect your Salesforce to Qobra, you’ll need to go through an OAuth flow, granting us access to two Salesforce scopes:
  • Perform requests at any time (refresh_token, offline_access)
  • Manage user data via APIs (api)
You’ll find more information about Salesforce connected app scopes here.

OAuth login – common pitfalls

When logging into Salesforce, please pay attention to the following points:
  • Make sure you are logging into the correct Salesforce environment (Production or Sandbox).
  • If you are logging in as an API-only user, ensure this user is fully logged out of Salesforce before starting the OAuth connection.
  • Be careful when using Salesforce custom domains and verify you are authenticating through the correct domain.
If you encounter the following error during the OAuth flow OAUTH_APPROVAL_ERROR_GENERIC, and the callback URL contains error_description=app+must+be+installed+into+org, follow these steps:
  • Go to Setup → Connected Apps OAuth Usage
  • Find the Qobra connected app
  • If the status shows Install (or Approve), click it
  • Retry the OAuth connection

Access restriction

The Qobra integrations has access to all the data the user who connected has access to. A common practice for our customers is to create an API only user in Salesforce to give Qobra’s access through this user (unlimited, enterprise, and performance Salesforce edition orgs get five free API only licenses). You can restrict this user’s access to Salesforce data, and then give us access through the OAuth flow to restrict Qobra’s access to a part of your Salesforce. Follow this tutorial to implement Salesforce’s best security practices.

Synchronization

Incremental synchronization

Qobra syncs this source incrementally. Each refresh reads only the records modified since the start of the last successful import, based on the last modified date of each record. Once a day, a full refresh reads all the records again and removes the records deleted from the source. A Qobra admin chooses how often Qobra refreshes the source, in Settings > Integrations, from the … menu of the integration card. For Salesforce, Qobra syncs each table incrementally based on a date and time field:
  • By default: Qobra uses the LastModifiedDate field of the object.
  • Objects without a LastModifiedDate field (for example CaseHistory, OpportunityFieldHistory, or Data Cloud objects): contact Qobra support to set the date field to import the table on, such as CreatedDate. The field must be a date and time (datetime) field of the object.
Qobra also imports Salesforce Data Cloud objects, both data model objects (__dlm) and data lake objects (__dll). If a Data Cloud object has no LastModifiedDate field, Qobra support must set a date field on it before you can import it.
Qobra can’t import an object that has no LastModifiedDate field and no date field set by Qobra support. The import also fails if the date field set on the table no longer exists in the object or isn’t a date and time field. In both cases, the import fails with a configuration error. Contact Qobra support to set or change the date field.

Supported types

You’ll find below the fields types supported by the Qobra integration, and their mapping to Qobra types. When you import a Salesforce email field, you can choose to map it either as a string or as a user. When mapped as user, Qobra matches the email value against the email addresses of the users of your Qobra company:
  • If a user matches, the record is linked to that user, and the cell displays the user’s avatar and name.
  • If no user matches, the email value is kept as-is in the record, and the cell displays Not imported. Hovering over the cell shows a tooltip indicating that this email does not match any user of your company.
The match is exact and case-sensitive. Qobra integration supports multi-currency synchronization, based on the CurrencyIsoCode field, present in each Salesforce object.

Custom query

You can filter the records Qobra imports from a table with a custom query, to keep imports fast on large tables. The query is a condition written in the query language of this source, without the WHERE keyword. A Qobra admin adds it when they add the data table in Qobra, under Data to sync.

Polymorphic references

Salesforce uses polymorphic references (also known as “polymorphic lookup fields” or “WhoId/WhatId fields”) in certain objects like Events and Tasks. These special reference fields can point to multiple types of entities. For example:
  • The WhoId field can reference Leads, Contacts, or Users
  • The WhatId field can reference Accounts, Opportunities, Cases, and other custom objects
Unfortunately, Qobra does not currently support polymorphic references due to their complex nature. When synchronizing objects that contain these fields, the references will not be properly resolved.

Workarounds

To handle this limitation, here are some suggested workarounds:
  1. Create Separate Fields: Instead of using the polymorphic fields, you can create separate lookup fields for each type of entity you need to reference. For example:
    • Account__c
    • Opportunity__c
    • Lead__c
    Then use Process Builder or Flow to automatically populate these fields based on the WhatId/WhoId values.
  2. Use Record Types: Create different record types for your Events/Tasks based on the type of entity they’re related to. This allows you to have different page layouts and field sets for each type of relationship.
  3. Custom Junction Objects: For complex relationships, consider creating custom junction objects that explicitly define the relationships between your records.

Show Qobra in a Salesforce tab

You can display Qobra in a Salesforce tab, so your sales reps follow their commissions without leaving Salesforce. The tab shows the Qobra web app in a frame.
You need permission to create tabs in Salesforce Setup. Invite your sales reps to Qobra before you show them the tab: until they have an account, the tab only shows the Qobra sign-in page.
1

Open the tab settings

In Salesforce Setup, open Tabs. In the Web Tabs section, click New.
2

Choose the layout

Select Full page width, then click Next.
3

Define the tab

Set Tab Label to Qobra and choose a Tab Style. Set Content Frame Height (pixels) to 800, or to the height that suits your screens. Click Next.
4

Enter the Qobra address

In Button or Link URL, enter https://app.qobra.co. If your company uses Qobra’s US region, enter https://app-us.qobra.co. Click Next.
5

Choose who sees the tab

Select the profiles that see the tab, then click Next. Select the custom apps that include the tab, then click Save.
Qobra can be displayed in a frame in Salesforce, Microsoft Dynamics and HubSpot. Other tools are refused by Qobra’s security settings.

Sign in with single sign-on

Single sign-on (SSO) does not work inside the tab. Google and the other SSO providers refuse to sign users in from inside a frame, for security reasons. To use the tab with SSO, sign in once on app.qobra.co in a separate browser tab. Once your Qobra session is active, the tab in Salesforce loads normally. Contact Qobra support for more information.