Updates a specific CRM Analytics dataset version by dataset ID and version ID.

updateDatasetVersion uses this CRM Analytics API resource.

  • datasetIdOrApiName— (Required) The ID or API name of the dataset.
  • versionId— (Required) The ID of the dataset version.
  • datasetVersion— (Required) The dataset version to update. Use a Dataset Version Input resource.

Use updateDatasetVersion to allow users to update the predicate. This example adds an update button to a page with dataset versions. The page must contain form elements for the information required to update the dataset version. Updating a dataset version displays a toast message using the lightning/platformShowToastEvent module.

This button calls the updateDatasetVersion() method.