English
getData
About 158 wordsLess than 1 minute
2025-09-22
This method synchronously returns the data of the current detail object, taken from the data field returned by the detail page interface.

Parameters
None
Return Value
Only some fields are listed below.
| Field | Description | Type |
|---|---|---|
| object_describe_api_name | Object apiName | String |
| display_name | Object name | String |
| name | Main property of the preset business type | String |
| _id | Object data ID; _id is empty for newly created data | String |
| Other fields | — | — |
Code Example
Inside the plugin:
module.exports = function (context, pluginService, pluginParam) {
return {
apply() {
return [
{
event: 'detail.render.before',
functional: function (pluginExecResult, options) {
console.log('custom plugin: detail.render.before exec')
// Get the data used to render the current detail object
console.log(context.getData())
}
}
]
}
}
}Notes
The data returned by this method has been processed with
util.cloneDeep(). Directly modifying it will not affect the original data.let data = context.getData() data.abc = '123' console.log(context.getData().abc) // does not affect the original data
