Knowledge Article Retired Date configuration

Ballela Siva Te
Tera Contributor

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

9 REPLIES 9

Sohail Khilji
Kilo Patron
Kilo Patron

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....

LinkedIn - Lets Connect

Hi @Sohail Khilji ,

 

I didn't find the property, Can you guide me the navigation

 

Regards,

B Siva Teja

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....

LinkedIn - Lets Connect

swathisarang98
Giga Sage
Giga Sage

Hi @Ballela Siva Te,

 

You can create a scheduled job to trigger event and based on event you can trigger notification,

 

Scheduled job:

swathisarang98_0-1709490003073.png

 

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:

swathisarang98_1-1709490123913.png

 

Notification:

swathisarang98_2-1709490154848.png

swathisarang98_3-1709490178147.png

 

Please mark this comment as Correct Answer/Helpful if it helped you.

Regards,

Swathi Sarang

 

 

 

 

@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