Manager/Knowledge Base owner must approve for workflow to proceed.

reyservicenow
Tera Expert

is there a script or an out of the box for the Manager and knowledge base owner to approve the KB article before it can continue?

my thoughts are as followed:

this is for manager approval and i don't think is working.

answer.push(current.request.requested_for.manager);

and i think this here is for both but it is not working am i missing somehthing?

getApprovers: function(knowledgeGR) {

  var kbOwner = knowledgeGR.kb_knowledge_base.owner;

  var kbManagers = knowledgeGR.kb_knowledge_base.kb_managers;

  //Approval activity will handle any trailing comma, if there are no managers.

  return kbOwner + "," + kbManagers;

i have attached pictures ... Also what workflows do they do in?

i want this to work for all KB articles- i was putting this in the request new knowledgeBase

thanks for the   help! Developer Community

goranlundqvist

1 ACCEPTED SOLUTION

ok lets try this !




Screen Shot 2017-03-07 at 5.45.09 PM.png


View solution in original post

16 REPLIES 16

Something like this... First the author manager, and if he/she approves, it goes to next approval which is the KB Owner.



find_real_file.png


ok let me try this on the knowledge approval-publish work flow or should i just create a new one?


ok i see its in the the knowledge approval- publish



let me plug this in ... now how can i get email notifications sent to the manager when i get a kb article to approve?



Thanks


The approval activity is creating an record in the sysapproval_approver table. Create a notification to hit on this table on Insert and design it like you want. I guess you want to send it to the user in the "approver" field on that record. Be aware that all approvers end up here, so if you want to make this only happen for knowledge I guess you need to make a condition to check what kind of record it is in the "approval for" field.



//Göran


also what stage to i put it in review?



Screen Shot 2017-03-07 at 5.38.10 PM.png