English
delDetail
About 56 wordsLess than 1 minute
2025-12-15
dataUpdater.delDetail(objApiName)
Deletes all data of a detail object
Parameters
| Parameter | Description | Type | Required |
|---|---|---|---|
| objApiName | Detail object apiName | String | Yes |
Basic Example
Delete all data of a detail object
export default class Plugin {
apply() {
return [{
event: 'md.render.after',
functional: this.mdRenderAfter.bind(this)
}]
}
mdRenderAfter(context, plugin) {
const delDatas = context.dataUpdater.delDetail('object_uo5Ra__c');
console.log(delDatas);
}
}