Change default approver on "Knowledge - Approval Publish" workflow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2023 03:30 PM
We would like to create a customized version of the "Knowledge - Approval Publish". However, instead the of the approval request going to the Knowledge Base managers, we'd like to add an "Approver" field that references the user table on our knowledge template and have the approval request go to that assigned approver. This would allow our users to assign the appropriate approver based on the article.
Based on my research so far, I believe we can clone the OOTB "Knowledge - Approval Publish" workflow and adjust the Approval – User activity.
My question is, how do we modify the advanced approver script so that it pulls from the custom “Approvers” field that we add, rather than the knowledge base managers?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2023 05:21 PM - edited 10-27-2023 05:22 PM
Hi @HollyOwens ,
You can use the below line in place of OOTB. First comment the current code and use the below code and test.
Let's see, the custom field on table [ kb_knowledge ] is KB Approver (kb_approver) which is reference from User(sys_user) table.
answer = current.kb_approver;
Please mark this response as correct and helpful if it helps you can mark more that one reply as accepted solution