Set Up Salesforce Connect to Use Your Custom Adapter

After you create your DataSource.Connection and DataSource.Provider classes, the Salesforce Connect custom adapter becomes available in Setup.

Complete the tasks that are described in “Set Up Salesforce Connect to Access External Data with a Custom Adapter” in the Salesforce Help.

To add write capability for external objects to your adapter:
  1. Make the external data source for this adapter writable. See “Define an External Data Source for Salesforce Connect—Custom Adapter” in the Salesforce Help.
  2. Implement the DataSource.Connection.upsertRows() and DataSource.Connection.deleteRows() methods for the adapter. For details, see Connection Class.