Creates a CRM Analytics dataset.

createDataset uses this CRM Analytics API resource.

  • dataset— (Required) The dataset to create. Use a Dataset Input resource.

A Promise object that resolves with the Dataset response.

Use createDataset to create a CRM Analytics dataset. For example, create a dataset from the Accounts object.

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

This button calls the createDataset() method.