- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-08-2023 10:54 PM
Hi,
In our organization knowledge management Ownership Group was defined as a mandatory field in the knowledge form, I don't want to remove this field. If I use the OOB approval workflow then the ownership group members receives the approval notifications. I want only the knowledge base managers will receive the approval notifications not the ownership group. Is there any customization is possible to only knowledge managers get the approval notification.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-09-2023 12:50 AM - edited ‎08-09-2023 01:01 AM
Hi @sekharksnow,
Yes, we need to customize the Script Include - KBWorkflow for your requirement.
To elaborate :-
OOB Workflow is: Knowledge - Approval Publish
It uses Script Include: KBWorkflow() and function: getApprovers()
So we will add below script to the Script Include:
getApprovers: function(knowledgeGR) {
var kbManagers = knowledgeGR.kb_knowledge_base.kb_managers;
var approvers = '';
approvers = approvers + this._filterInactiveUsers(kbManagers);
return approvers;
},
See my example below:
For Knowledge Base : IT
The Owner and KB managers are assigned. (refer to the screenshot below)
1. With OOB approval process, the approval goes to Owner and well as the Managers:
2. But with the customized script include and function, the approval goes to only the Managers (as requested):
Please make the mentioned changes.
Please mark the appropriate response as correct answer and helpful, This may help other community users to follow correct solution.
Thanks,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-09-2023 06:27 AM
Thanks, if my reply helped please mark it as helpful and correct based on impact.
To answer your doubt we have some OOB notifications which are triggered when state on Knowledge changes.
You can check for those notifications in "sysevent_email_action" table. (E.g. KM: Approve article for publishing).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-09-2023 06:35 AM
There doesn't exist a property for this. And unfortunately neither any OOB notification for retiring an article.
But you can create a custom notification for this requirement:
In Notifications table (sysevent_email_action), take reference of "KM: Approve article for publishing" and create a custom for "Retire".
Thanks,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-09-2023 04:33 AM
"I have one more question. When I attempt to publish the article, an out-of-the-box notification is sent by ServiceNow to the managers. However, when I try to retire the article, no email notifications are sent to the managers. Is there any out-of-the-box property that needs to be enabled to send notifications to KB managers at the time of retirement?"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-09-2023 06:35 AM
There doesn't exist a property for this. And unfortunately neither any OOB notification for retiring an article.
But you can create a custom notification for this requirement:
In Notifications table (sysevent_email_action), take reference of "KM: Approve article for publishing" and create a custom for "Retire".
Thanks,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-09-2023 11:38 PM
Thank you very much for your quick response.