How to notified to a knowledge author about expiry article in a month advance?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2022 10:09 PM
Hi All,
Actually my requirement was every first day of each month, an email notification to a list of authorized recipients to remind them about articles that are scheduled to expire in the next month
Like if up to 10 – The email notification includes a list of article links displayed in a tabular format and arranged in ascending order by their Valid to date. Clicking a link opens the article in Now Platform?
if More than 10 – The email notification includes a View the list of expiring articles link, which when accessed opens a list in Now Platform of all articles expiring in the next month.?
Please help to achieve this
Thanks
Deepika

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2022 10:23 PM
Hi Deepika,
You can try various ways to Notify the Knowledge author, with the likes of
1. Scheduled Job
2. mail scripts
3. using the OOTB notifications
4. Use a flow designer
Refer to these threads for your code and ways of implementing the same, just change the code or logic as per your requirement :
Flow Designer Demo: Automate Knowledge Expiration Warning
Mark my answer correct & Helpful, if Applicable.
Thanks,
Sandeep
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-04-2022 12:29 AM
Hi Sandeep
Thanks For the response
So if i understood the trigger point but other concern was display the links of artcles in the email body like
Like if up to 10 – The email notification includes a list of article links displayed in a tabular format and arranged in ascending order by their Valid to date. Clicking a link opens the article in Now Platform?
if More than 10 – The email notification includes a View the list of expiring articles link, which when accessed opens a list in Now Platform of all articles expiring in the next month.?
How can i achieve that?
Thanks
Deepika

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2022 10:24 PM
HI you can have a scheduled job with following script:
var gr = new GlideRecord('kb_knowledge');
gr.addQuery("workflow_state", "published");
gr.addQuery("valid_to", "=", gs.daysAgoStart(-30));//less than 30 days
gr.addQuery("valid_to", ">", gs.now());
gr.query();
while (gr.next()){
gs.eventQueue("kb.expired20", gr, "", ""); // fire event to author
}
Harish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-04-2022 12:27 AM
Hi Harish,
Thanks for the response
So like i mentioned, i need to trigger notification like
Like if up to 10 – The email notification includes a list of article links displayed in a tabular format and arranged in ascending order by their Valid to date. Clicking a link opens the article in Now Platform?
if More than 10 – The email notification includes a View the list of expiring articles link, which when accessed opens a list in Now Platform of all articles expiring in the next month.?
How can i achieve this email notification contains links?
Thanks
Deepika