---
schema_version: "1"
id: fac3682f5a3d923dbbfd3a540abe97c7091d3d4fa16824a6ada80442a9e06df7
title: Get Started with the Apex Connector Framework
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexcode/apex_connector_start.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_connector_start.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 633a347e4595bc43f9fdd15b3f67cefb5cf4671e4fadeaa7d8316ebaf44eeacc
description: "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."
---
# 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.

![Note](https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/images/icon_note.png)

#### Note

The DataSource.Connection class requires a Salesforce Connect add-on license. For more information, see [Salesforce Connect Adapters Included per Add-On License](https://help.salesforce.com/s/articleView?id=sf.platform_connect_license.htm&language=en_US "HTML (New Window)").

Let’s step through the code of a sample custom adapter.

1. [Create a Sample DataSource.Connection Class](https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_connector_start_connection_class.htm)  
    First, create a DataSource.Connection class to enable Salesforce to obtain the external system’s schema and to handle queries and searches of the external data.
2. [Create a Sample DataSource.Provider Class](https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_connector_start_provider_class.htm)  
    Now you need a class that extends and overrides a few methods in DataSource.Provider.
3. [Set Up Salesforce Connect to Use Your Custom Adapter](https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_connector_start_setup.htm)  
    After you create your DataSource.Connection and DataSource.Provider classes, the Salesforce Connect custom adapter becomes available in Setup.