Change default approver on "Knowledge - Approval Publish" workflow

HollyOwens
Tera Contributor

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.

 

HollyOwens_0-1698445806721.png

 

 

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?

HollyOwens_1-1698445806732.png

 



1 REPLY 1

AshishKM
Kilo Patron
Kilo Patron

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