How does Salesforce Connect utilize OData adapters to integrate external data without storing it locally?
Answer
Basics: This is data virtualization. Rather than syncing records into Salesforce (using storage and risking staleness), Salesforce makes a live call to the external system whenever a user opens a list, a record or a report. External Objects have API names ending in __x and behave like custom objects in tabs, page layouts, related lists, SOQL and global search. It is a separately licensed feature (verify licensing per edition).
How it works:
- Expose the source as an OData service (or use another adapter: Cross-Org, Amazon Athena, or a custom Apex adapter).
- Create an External Data Source (Setup > External Data Sources), choose the adapter type, endpoint and identity type (named principal or per user); use a Named Credential/External Credential for auth.
- Click Validate and Sync to create External Objects from the service metadata.
- Grant permissions and add the objects to tabs or related lists.
- Each user action triggers an OData request; Salesforce translates the SOQL query into
$filter,$top,$select, and maps the response to rows.
Advanced / deep dive: Relationships use special lookups: External Lookup (child external to parent standard), Indirect Lookup (external child to standard parent using an external ID), plus standard lookups. Because every access is a callout, performance depends on the source and network; queries with non-pushdown-able filters can be slow; limits on callouts, row counts and timeouts apply. External objects do not support all features (for example, some reporting and sharing features, and many automation features are limited, verify in docs). Writable external objects can create, update and delete in the source. Alternatives: replicate via ETL if you need offline access, heavy reporting or joins; use Data Cloud data virtualization/zero-copy for analytics scenarios. The custom Apex adapter framework ( and ) fits non-OData systems.