English
getDetailDescribe
About 108 wordsLess than 1 minute
2025-09-22
This method synchronously returns the metadata of the specified child object on the current create/edit page.
Parameters
| Parameter | Description | Type |
|---|---|---|
| apiName | Object apiName | String |
Return Value
Standard object metadata: object_describe
| Parameter | Description | Type |
|---|---|---|
| api_name | Object apiName | String |
| display_name | Object name | String |
| fields | All fields of the object | Object |
Code Example
export default function (context) {
return {
/** After the create/edit page has finished rendering */
renderEnd(){
let describe = context.getDetailDescribe("SalesOrderProductObj");
console.log("context.getDetailDescribe: ", describe);
}
}
}Notes
Do not modify any property in the returned object metadata, as it may lead to unexpected results.
let describe = context.getDetailDescribe("SalesOrderProductObj"); describe.testkey="";// forbidden describe.fields.testkey="";// forbidden
