Create External Data Source
sf_create_external_data_sourceCreates a Salesforce External Data Source to connect external REST or OData endpoints, enabling live read-write access and exposing data as External Objects without import.
Instructions
Creates an External Data Source for Salesforce Connect, enabling read-write access to data stored outside Salesforce without importing it. Supports OData 2.0/4.0 for standard REST services, SimpleURL for basic access, Apex for custom adapters. The external data then appears as External Objects (__x) in Salesforce.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | Connection type: SimpleURL for basic, OData2/OData4 for OData, Apex for custom | SimpleURL |
| label | Yes | Display label | |
| endpoint | Yes | Endpoint URL | |
| fullName | Yes | External data source API name | |
| password | No | Password for Password protocol | |
| protocol | No | Authentication protocol | NoAuthentication |
| username | No | Username for Password protocol | |
| description | No | Description | |
| principalType | No | Authentication principal type | Anonymous |