Skip to main content
New tool CRON Expression Builder — preview next run times before you schedule Apex. Open the builder →
A detailed diagram illustrating the architecture of Salesforce Connect with external data sources
Interview Prep

Salesforce Connect interview questions and technical guide

Salesforce Connect is one of those features that sounds easy until an interviewer asks about limits and licensing. This guide covers how to explain external objects and the architectural choices behind them.

The short answer

Salesforce Connect gives users real-time access to external data through external objects, without consuming Salesforce org data storage. This guide covers the architecture, the setup steps, the query limits, and the trade-offs that come up in technical interviews.

Key takeaways Choose Salesforce Connect when users need real-time visibility into huge or fast-changing external datasets without consuming Salesforce data storage. Write an Apex custom adapter when you are connecting to a third-party endpoint that the OData 2.0, OData 4.0, and Cross-Org adapters do not cover. Weigh the licensing cost against lighter options, such as a Lightning Web Component with API callouts, when the data access is low volume. Check that the external system supports the filters you need before you run SOQL against external objects (__x). Link external objects to native Salesforce records with External Lookup or Indirect Lookup relationship fields.

Prepping for Salesforce Connect interview questions

If you are heading into a technical role, you'll almost certainly get asked Salesforce Connect interview questions. It sounds simple on paper and gets complicated fast once limits and licensing come up. I've been on both sides of the interview table, and the candidates who stand out treat this as an architectural decision rather than a way to link data together.

The thing to hold onto is that Salesforce Connect shows you data where it already lives instead of copying it. We've all seen projects where someone syncs millions of rows of legacy data into custom objects, which is a nightmare for managing Salesforce large data volumes. Connect lets you see that data in real time without storing it in your org.

What exactly is Salesforce Connect?

It surfaces data from an external system, say an ERP or another Salesforce org, as if that data lived inside your own. It does this with external objects. They look and behave a lot like the custom objects you already use, except they don't count against your data storage limits. You'll recognize them by the __x suffix in the API name.

When a user opens a tab or a related list for an external object, Salesforce doesn't look at its own database. It sends a request to the external system, the data comes back, renders in the UI, and then it's gone again. It's a live window into your other systems.

The building blocks you need to know

  • External data source. This is the connection setup. It tells Salesforce where to go, how to log in, and what kind of "language" (adapter) to speak.
  • Adapters. These are the translators. Out of the box you get OData (2.0 or 4.0), which is common for SAP or Microsoft systems, plus a Cross-Org adapter for connecting two Salesforce environments.
  • Apex custom adapters. If the external system doesn't speak OData, you aren't stuck. You can write your own adapter in Apex to handle a unique API.

An architectural diagram showing a real-time integration between a CRM system and an external database using an API adapter.

An architectural diagram showing a real-time integration between a CRM system and an external database using an API adapter.

Answering Salesforce Connect interview questions about use cases

When an interviewer asks when to use this, don't just say "to show data." Be specific. I've seen teams get the most out of it when they have massive datasets sitting in an old SQL database that they only need to look at occasionally. You don't want to pay for Salesforce storage for 10 million old invoices that nobody ever edits.

The other case is data that changes every few minutes. Sync that with a batch job and you're always looking at stale info. With Connect the external system stays the source of truth, because every read is a live fetch. That's a strong answer when the conversation turns to Salesforce integration options and real-time access is the priority.

Pro tip: bring up cost versus benefit during the interview. Salesforce Connect is a paid add-on. If a client only needs to see five records a day, a simple LWC with an API call might be cheaper than buying a Connect license.

The limits and "gotchas" that trip people up

There are real trade-offs here, and naming them is how you show you've done this outside a demo org. Performance is only as good as the external system, so if that old ERP is slow, your Salesforce page is slow too. And because the data isn't in Salesforce, you can't use it in standard reports the way you do with native data.

Then there's SOQL. You can query external objects, but complex work like full-text searches and certain aggregates is not easy. Here is what a query looks like:

SELECT Id, OrderNumber__c, TotalAmount__c FROM ERP_Order__x WHERE Status__c = 'Shipped'

Ordinary enough, except that behind the scenes Salesforce is translating that SOQL into an OData call. If the external system doesn't support a specific filter, the query fails. I've hit that one in the field more than once.

How to set it up (high level)

  1. Define the source. Go to Setup, find External Data Sources, and plug in your URL and credentials.
  2. Choose auth. Decide whether everyone shares one Named Principal account or each user logs in to the external system with their own credentials.
  3. Sync. Click the "Validate and Sync" button and Salesforce reads the external metadata and builds the external objects for you.
  4. Relate the data. Use External Lookups or Indirect Lookups to link these new objects to your Accounts or Contacts.

Key takeaways for your next interview

  • External objects don't use Salesforce data storage, which is where most of the cost saving comes from.
  • The connection is live. No sync delay, but you're at the mercy of the external system's speed.
  • Know the difference between External and Indirect lookups. Explaining those cleanly gets you through most Salesforce Connect interview questions.
  • Most people assume it's read-only. It supports Create, Edit, and Delete too, if the adapter and the external system allow it.

Wrapping it up

Salesforce Connect isn't the right answer every time. When you need to show massive amounts of external data without the headache of a custom integration or the storage bill, it's hard to beat. Just check the licensing costs before you recommend it to a client. Most candidates get the "how" right and fumble the "why," and being able to explain the business value alongside the technical limits is what gets you through Salesforce Connect interview questions.

Frequently asked questions

What is Salesforce Connect?

Salesforce Connect is an integration framework that surfaces data from external systems inside Salesforce in real time using external objects with the `__x` suffix. It queries the external system on demand and displays records in the user interface without consuming Salesforce data storage.

When should you use Salesforce Connect?

Use Salesforce Connect for massive historical datasets that users only look at occasionally, or for data that changes often enough that it has to stay a live source of truth. It avoids the storage cost and the maintenance overhead of running large batch synchronization jobs.

Is Salesforce Connect read-only?

No. Salesforce Connect supports create, edit, and delete as well as reading. Writing requires that both the adapter and the external system permit record modifications.

What adapters can you use with Salesforce Connect?

Salesforce Connect includes built-in adapters for OData 2.0, OData 4.0, and Cross-Org connections to other Salesforce environments. For systems with proprietary or unsupported APIs, you can write an Apex custom adapter.

What are the limitations of querying external objects with SOQL?

Salesforce translates SOQL into OData or external API calls, so the query fails if the external system cannot run a particular filter. External objects also cannot be used in standard reports the way native objects can, and full-text searches and some aggregate operations are hard to do.

Newsletter

One email every Tuesday

New guides, tool updates, and the release-note changes that break things.

No spam. Unsubscribe in one click.

Comments

Loading comments...

Leave a Comment