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

Bharath40
Giga Guru

Hi Rey,



If your question is to send approval action for Owner then you can achieve as below.



Under Administration >Knowledge bases navigate to specific KB article . For reference field 'Publish Workflow' select as Knowledge Approval Publish , select user who you want to approve the article under Managers field.


sorry but i want this to automatically go to the users manager for approval without me manually having to enter any user information can you post me a picture of what your trying to get me to do? i have tried to select the knowledge approval publish and theres not much there except two options and i have picked workflow Knowledge - Approval Publish and stage kb approved heres a screenshot.



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



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



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


Hey Rey,



You can easy do that by Dotwalking. Question is how you want the approval to come, do you want it to first land on the Manager and when it's approved then show up at the KB owner, or the other way around? Or perhaps both should get it at the same time and it requires both the approve to get it approv



if you click on users and the the icon I circled in. Here you can dotwalk to authors manager and the Knowledge base-> owner



find_real_file.png



And then further down, change "wait for" to "Everyone to approve". Like this:


find_real_file.png



Is this what you are after?



//Göran


ok doctor this worked so thats what i was looking for now... i need it to go to manager first approve then kb knowledge owner approval then publish. I think i have to create 2 separate mappings for this