English
flow.approval.detail.parse.before
About 103 wordsLess than 1 minute
2026-04-17
flow.approval.detail.parse.before
Description: This hook is used to rewrite approval to-do feed card details and buttons.
1. feedDetail
Feature Description
- Rewrites approval to-do feed card details and buttons.
Parameters
| Parameter | Description | Type |
|---|---|---|
| feedDetail | Approval detail data | Object |
| buttonList | button list | Array |
Return Value
| Parameter | Description | Type |
|---|---|---|
| feedDetail | Approval detail data | Object |
| buttonList | button list | Array |
Parameter Code Example
let feedDetail = options && options.feedDetail;Code Example
module.exports = function (context, pluginService, pluginParam) {
return {
apply() {
return [
{
event: "flow.approval.detail.parse.before",
functional: async function (context, options) {
let feedDetail = options && options.feedDetail;
let buttonList = options && options.buttonList;
return Promise.resolve({
feedDetail: feedDetail,
buttonList: buttonList
});
}
}
];
}
};
};