No Results
Search Tips:
- Please consider misspellings
- Try different search keywords
Newer Version Available
ExternalDataSource
Represents the metadata associated with an external data source. Create external data sources to manage connection details for integration with data sources outside your Salesforce organization. This type extends the Metadata metadata type and inherits its fullName field.
File Suffix and Directory Location
ExternalDataSource components are stored in the dataSources directory of the corresponding package directory. ExternalDataSource components have the suffix .dataSource, and the prefix is the name of the external data source.
Version
ExternalDataSource components are available in API version 28.0 and later.
Fields
| Field Name | Field Type | Description |
|---|---|---|
| apiKey | string | Reserved for future use. |
| authProvider | string | The authentication provider that is represented by the AuthProvider component. |
| certificate | string | Available for Lightning Connect and SharePoint 2010 and 2007. If you specify a certificate, Salesforce supplies it when establishing each connection to the external system, in addition to the specified authentication method. The certificate is used for digital signatures, which verify that requests are coming from your organization. |
| customConfiguration | string | A custom string used for configuring the data source. For example, the
following JSON-encoded configuration string defines parameters that apply when
type is set to OData.
|
| endpoint | string | The service URL or root URL of the data source. Corresponds to URL in the user interface. |
| label | string | A user-friendly name for the data source displayed in the Salesforce user interface,
such as in list views. Examples include Acme Team Marketing Site, or Acme SharePoint. |
| oauthRefreshToken | string | The OAuth refresh token. Used to obtain new access tokens for an end user when old tokens expire. |
| oauthScope | string | The scope of the access token as a list of space-delimited strings for permission settings that specifies access to a specific user's data. Corresponds to Scope in the user interface. |
| oauthToken | string | The access token issued by your authorization server. |
| password | string | The password to be used by your organization to access the external system. Ensure that the credentials you use have adequate privileges to access the data source, perform searches, and return information about the external data. Depending on how you set up access, you may need to provide the administrator password. |
| principalType | ExternalPrincipalType (enumeration of type string) | The identity type for authenticating to the
external system. Corresponds to Identity Type in the user interface. The valid values are:
|
| protocol | AuthenticationProtocol (enumeration of type string) | The
protocol required to access the data source outside Salesforce. If your
External Data Source is SharePoint, select Basic
Authentication.The valid values are:
|
| repository | string | Used for SharePoint Online. If metadata is not accessible, use this field to create tables and default table fields. |
| type | ExternalDataSourceType (enumeration of type string) | The type of data source you want to connect to. The valid values are:
|
| username | string | The username to be used by your organization to access the external system. Ensure that the credentials you use have adequate privileges for accessing the data source, performing searches, and returning information. Depending on how you set up access, you may need to provide the administrator username. |
| version | string | The version number of the data source you’re using. |
Declarative Metadata Sample Definition
The following is the
definition of an external data source for Lightning Connect.
1<?xml version="1.0" encoding="UTF-8"?>
2<ExternalDataSource xmlns="http://soap.sforce.com/2006/04/metadata">
3 <authProvider>FacebookAuth</authProvider>
4 <customConfiguration>{"noIdMapping":"false",
5 "searchFunc":"","searchEnabled":"true","format":"ATOM",
6 "requestCompression":"true","timeout":"120"}</customConfiguration>
7 <endpoint>http://myappname.herokuapp.com/DataHub.svc</endpoint>
8 <label>DataHub</label>
9 <principalType>NamedUser</principalType>
10 <protocol>Oauth</protocol>
11 <type>OData</type>
12</ExternalDataSource>