English
updateDetail
About 74 wordsLess than 1 minute
2025-12-15
dataUpdater.updateDetail(objApiName, rowId, updatedData)
Updates one record of a detail object
Parameters
| Parameter | Description | Type | Required |
|---|---|---|---|
| objApiName | Detail object apiName | String | Yes |
| rowId | Row ID of the detail-object data | String | Yes |
| updatedData | Updated data | Object | Yes |
Return Value
None
Basic Example
Update detail-object data
export default class Plugin {
apply() {
return [{
event: 'form.render.after',
functional: this.formRenderAfter.bind(this)
}]
}
formRenderAfter(context, plugin) {
context.dataUpdater.updateDetail('object_22at2__c', '1693377736231368', {
'name': '1111',
'field_a3ic0__c': 'aaa'
});
}
}