updateDataset

Updates a specific CRM Analytics dataset by ID.

updateDataset uses this CRM Analytics API resource.

Parameter NameTypeDescriptionRequired?
datasetIdOrApiNameStringThe ID or API name of the dataset.Yes
datasetObjectThe dataset to update. Use a Dataset Input resource.Yes
  • A Promise object that resolves with the Dataset response.

Use updateDataset to allow users to change descriptions, labels, and more. This example adds an update button to a page with datasets. The page must contain form elements for the information required to update the dataset. Updating a dataset displays a toast message using the lightning/platformShowToastEvent module.

This button calls the updateDataset() method.