createDataConnector

Creates an instance of a prebuilt CRM Analytics connector to connect to data in your Salesforce orgs, apps, data warehouses, and database services.

createDataConnector uses this CRM Analytics API resource.

  • dataConnector— (Required) The data connector instance to create. Use a Data Connector Input resource.

A Promise object that resolves with the Data Connector response.

Use createDataConnector to create an instance of a prebuilt CRM Analytics connector. For example, create a connector to another Salesforce org to pull in Account data.

This example adds a create button to a page. The page must contain form elements for the information required to create the connector, like the properties. Creating a data connector displays a toast message using the lightning/platformShowToastEvent module.

This button calls the createDataConnector() method.