English
updateDetailByApiName
About 104 wordsLess than 1 minute
2025-09-22
Overwrite and update child object data.
Parameters
| Parameter | Description | Type |
|---|---|---|
| apiName | Child object apiName | String |
| object_datas | Data to overwrite and update | Array |
Required Properties of object_data
If the following properties are missing, the update operation will fail.
| Property | Description | Type |
|---|---|---|
| object_describe_api_name | Object apiName | String |
| record_type | Record type | String |
Return Value
None
Code Example
{
event: "form.render.end",
functional: function (pluginExecResult, options) {
console.log("custom plugin: form.render.end exec");
let {dataUpdater}=options;
// Update child object SalesOrderProductObj data
dataUpdater.updateDetailByApiName("SalesOrderProductObj", [{object_describe_api_name:"SalesOrderProductObj",record_type:"default__c"}])
}
},Notes
- This method only contains logic for updating object data. It does not trigger calculations or UI events.
