- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-14-2022 01:51 PM
Not sure I put this in the right forum, but it's about managing the knowledge bases.
We're just not building our our KB and I want to utilize the Valid To date to make sure the content is fresh and still accurate. But I also want to setup a workflow to alert us for what content is expiring soon and have us review it before the valid to date.
I've got a flow setup in Flow Designer to check for KBs expiring this quarter, but I can't figure out how to get the short description of each record into a single email. I see where I could get a email for each KB.. but that would be a lot of emails.
Any help or any better way to do this would be much appreciated.
Thanks,
Solved! Go to Solution.
- Labels:
-
Knowledge Management

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-16-2022 02:08 AM
Hi,
You could to this by temporarily storing the short descriptions in a Flow variable. Unfortunately Flow variables came in Quebec, so you'll need to upgrade first.
After looping through all short descriptions, adding them to a flow variable, you set the value of the Flow variable as part of the text message sent out with your email.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-18-2022 01:19 PM
Thank you!
Always a pleasure to hear that it helps 🙂
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-21-2024 04:26 AM - edited ‎08-21-2024 04:32 AM
@OlaN : this solution is working to set the actual values of the list collector but further if i m using flow variable value to set it to some other place, it is only setting the last selected value on the list collector variable..
pls let me know how to set all the values which are selected on the list collector variable.
i want to set the names of the users in the description field on req/ritm selected on the catalog form via list collector

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-21-2024 08:01 AM
Hi Rahul,
I'm not sure what you're missing, or what your requirement is.
Please post this as a separate question, and explain in detail what it is you want to achieve, and I'll be happy to help (if I can).
Feel free to tag me in the new question you've created.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-16-2022 04:32 AM
Hi,
Please find the steps below to achieve your requirement:
1) Create a Scheduled Job whose frequency will be as "Daily" and use the script as below to trigger a Notification containing all Short Description for Knowledge articles which are about to expire as shown below:
triggerNotificcation();
function triggerNotificcation(){
var shortArr = [];
var gr = new GlideRecord('kb_knowledge');
gr.addEncodedQuery('workflow_state=published^valid_to<javascript:gs.beginningOfThisQuarter()');
gr.query();
while(gr.next()){
shortArr.push(gr.short_description.toString());
}
gs.eventQueue('Event Name',gr,shortArr.toString()); Replace "Event name" with your Event Name and also you can pass 4th parameter after "shortArr" in last line in case you want to send this Notification to a specific user as well
}
In script above you also need to create an event first by navigating to "Registry" module as shown below and select Table as Knowledge:
Now Navigate to Notification Script module where you need to fetch the value passed from Scheduled Job and retrieve it in your Email Script and print it in a single Notification itself as required.
Navigate to Email Script as shown below:
Use the script below to retrieve All Short Description into Single Email as shown below:
(function runMailScript(/* GlideRecord */ current, /* TemplatePrinter */ template,
/* Optional EmailOutbound */ email, /* Optional GlideRecord */ email_action,
/* Optional GlideRecord */ event) {
// Add your code here
var getshort = event.parm1;
var getSplitShort = getshort.split(',');
for(var i=0;i<getSplitShort.length;i++){
template.print('Knowledge Short Description is ' + getSplitShort[i]);
}
})(current, template, email, email_action, event);
Now the final step will be to configure your Notification as shown below which should be on Knowledge Table and should be Event Based and make sure to check "Parm1 and Send to Event Creator" as True and to call the Notification Email script in your Notification you need to use the syntax below:
${mail_script:Mail Script Name}
Let me know if you are stuck.
Hope this helps. Please mark the answer as correct/helpful based on impact.
Regards,
Shloke
Regards,
Shloke
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-23-2022 08:32 AM
If you just want to send the email to yourself then just a scheduled report should do the trick (I have one myself). If you want authors to receive an email list of all their articles about to expire then that's much harder and I would like a solution for that. At the moment I simply manage via a dashboard and individual notifications but they are routinely ignored and the feedback tasks generated left unresolved.