onRecordDeleted

Scope: grid, app wide The event occurs when a record is deleted. The ids of the deleted records are passed as an array in eventArgs.details for example: ["1", "5", "10007"]

   console.log('Deleted records: ' + eventArgs.details);

Another example to iterate over the deleted record ids:

   for(let i = 0; i < eventArgs.details.length; i++){
       console.log("Deleted id: " + eventArgs.details[i]);
   }

Last updated