---
schema_version: "1"
id: 7460f6add26f40ab33bd882f19c257fa7725b71be87cf7e2e5a977e3ee59c628
title: Named Credential as Callouts for Salesforce Connect OData 2.0 or 4.0 Adapters
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/platform/264-0-0/platform_connect_external_data_source_example.md
canonical_url: https://help.salesforce.com/s/articleView?id=platform.platform_connect_external_data_source_example.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 76ad94a2c18d66f6e3f8013a135183797bb543f421d8b2aff4f835b22caf8141
description: When you define an external data source for the Salesforce Connect OData 2.0 or 4.0 adapters, you can enter a named credential URL as the URL for reaching the OData producer. This example shows how Salesforce Connect OData 2.0 or 4.0 adapters can make callouts using the authentication settings defined in a named credential.
products:
  - Salesforce Platform
  - Security
release: "264"
---
# Named Credential as Callouts for Salesforce Connect OData 2.0 or 4.0 Adapters

When you define an external data source for the Salesforce Connect OData 2.0 or 4.0 adapters, you can enter a named credential URL as the URL for reaching the OData producer. This example shows how Salesforce Connect OData 2.0 or 4.0 adapters can make callouts using the authentication settings defined in a named credential.

Define a named credential that specifies the endpoint URL and the JWT authentication settings.

![Create a named credential with JWT](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-platform-extend_click-264-0-0-production-enus/5f7d9219-b7b1-4552-8891-f1aba9b289fc/extend_click/images/external_data_source_namedcredential_create.png)

When you’re defining an external data source with an Odata 2.0 or Odata 4.0 adapter, specify the named credential you defined as the OData service root URL. In this example, the **URL** is `callout:Test_named_credential`. And skip the **Authentication** section for the external data source. To access the external system, Salesforce Connect uses the authentication settings defined in the named credential.

![Create an external data source with named credential as authentication](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-platform-extend_click-264-0-0-production-enus/5f7d9219-b7b1-4552-8891-f1aba9b289fc/extend_click/images/external_data_source_create.png)

#### See Also

- [Named Credentials](https://help.salesforce.com/s/articleView?id=xcloud.named_credentials_about.htm&type=5&language=en_US)
- [Store Authentication Settings for External Systems](https://help.salesforce.com/s/articleView?id=platform.external_authentication.htm&release=264.0.0&type=5 "You or your administrator can set up and manage your authentication settings for external systems. With valid authentication settings, you can access external systems from within your Salesforce org.")
- [Grant Access to Authentication Settings for Legacy Named Credentials](https://help.salesforce.com/s/articleView?id=xcloud.named_credentials_permsets_profiles.htm&type=5&language=en_US)