updateDatasetVersion

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

updateDatasetVersion uses this CRM Analytics API resource.

Parameter NameTypeDescriptionRequired?
datasetIdOrApiNameStringThe ID or API name of the dataset.Yes
versionIdStringThe ID of the dataset version.Yes
datasetVersionObjectThe dataset version to update. Use a Dataset Version Input resource.Yes

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.