Salesforce Connect

Apex code can access external object data via any Salesforce Connect adapter. Use the Apex Connector Framework to develop a custom adapter for Salesforce Connect. The custom adapter can retrieve data from external systems and synthesize data locally. Salesforce Connect represents that data in Salesforce external objects, enabling users and the Lightning Platform to seamlessly interact with data that’s stored outside the Salesforce org.

  • Apex Considerations for Salesforce Connect External Objects

    Apex code can access external object data via any Salesforce Connect adapter, but some requirements and limitations apply.

  • Writable External Objects

    By default, external objects are read only, but you can make them writable. Doing so lets Salesforce users and APIs create, update, and delete data that’s stored outside the org by interacting with external objects within the org. For example, users can see all the orders that reside in an SAP system that are associated with an account in Salesforce. Then, without leaving the Salesforce user interface, they can place a new order or route an existing order. The relevant data is automatically created or updated in the SAP system.

  • External Change Data Capture Packaging and Testing

    You can distribute External Change Data Capture components in managed packages, including a framework for testing your Apex triggers. Special behaviors and limitations apply to packaging and package installation.

  • Mock SOQL Tests for External Objects

    You can mock SOQL query responses for external objects in Apex testing by using SOQL stub methods and a new test class. Use basic and joined SOQL queries against external objects and return mock records in a testing context.

  • Get Started with the Apex Connector Framework

    To get started with your first custom adapter for Salesforce Connect, create two Apex classes: one that extends the DataSource.Connection class, and one that extends the DataSource.Provider class.

  • Key Concepts About the Apex Connector Framework

    The DataSource namespace provides the classes for the Apex Connector Framework. Use the Apex Connector Framework to develop a custom adapter for Salesforce Connect. Then connect your Salesforce org to any data anywhere via the Salesforce Connect custom adapter.

  • Considerations for the Apex Connector Framework

    Understand the limits and considerations for creating Salesforce Connect custom adapters with the Apex Connector Framework.

  • Apex Connector Framework Examples

    These examples illustrate how to use the Apex Connector Framework to create custom adapters for Salesforce Connect.

See Also

DID THIS ARTICLE SOLVE YOUR ISSUE?
Let us know so we can improve!