Knowledge Article Retired Date configuration
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-03-2024 01:22 AM
Hi Team,
We got a requirement to send automatic mail before 15 days of the valid to date of a Knowledge article.
Can you please guide me how can we do it through different ways
Regards
Siva Teja B
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-03-2024 09:46 AM - edited 03-03-2024 09:47 AM
Hi @Ballela Siva Te ,
Did you explore the OOTB instance for this notification ? I believe there is already a configuration set for x days before the expiry of the article. You just have to enable the property and set the days as needed. No need of custom solutions recommended by others....
The email notifications for expiring knowledge articles are available when you activate the Knowledge Management Core plugin (com.glideapp.knowledge) and sets the value of the glide.knowman.enable_article_expiry_notification property to true. By default, the property value is set to false.
I hope this helps...
☑️ Please mark responses as HELPFUL or ACCEPT SOLUTION to assist future users in finding the right solution....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-03-2024 10:07 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-03-2024 10:24 PM
good day !
1. Check if plugin com.glideapp.knowledge is enabled.
2. type > sys_properties.LIST > This opens properties table.
3. Search for *glide.knowman.enable_article_expiry_notification in name field.
4. If plugin is enabled and no property found then create on with same name and true value.
i hope this helps....
☑️ Please mark responses as HELPFUL or ACCEPT SOLUTION to assist future users in finding the right solution....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-03-2024 10:23 AM
Hi @Ballela Siva Te,
You can create a scheduled job to trigger event and based on event you can trigger notification,
Scheduled job:
var gr = new GlideRecord('kb_knowledge');
gr.query();
if (gr.next()) {
var startDate = new GlideDate();
var gdt = new GlideDateTime(gr.valid_to);
// var endDate = new GlideDateTime();
var dateDiff = GlideDateTime.subtract(startDate, gdt);
var roundedDate = dateDiff.getRoundedDayPart();
if (roundedDate == 14) {
gs.eventQueue('expiry.notification', gr, '', '');
}
}
Event:
Notification:
Please mark this comment as Correct Answer/Helpful if it helped you.
Regards,
Swathi Sarang
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2024 07:36 AM
@Ballela Siva Te Thanks for marking my answer as helpful. If it helped you in any way please accept the solution so that it will be beneficial to the future readers with the same query
Thanks
Swathi