- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-12-2022 11:09 PM
Hi All,
We have a requirement when a KB article notification is triggered at the same time with the same data a task record is to be created for auditing the article details.
I was thinking to have a script action approach to create the task data following the event "kb.article.expiry.warning", however I have never worked on a script action before. I am not sure how to create that script action.
Could you please guide me with an approach for creating an auto task when an article is about to expire how to get all its data on the task.
Is there a way to achieve this using a Flow Designer?
Hoping for some suggestions for the same.
Thanks,
Sonali.
Solved! Go to Solution.
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-22-2022 03:13 AM
A new scripted Schedule Job was created. We didn't played around the OOB notifications.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-13-2022 01:33 AM
How do you trigger the event?
If you're always going to create a task at the same time, I'd just put the task creation in the same place as well.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-13-2022 01:53 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-13-2022 10:57 PM
When a script says "new SOMETHING" it's calling a script include. The ".notifyForExpiringArticles()" is function in that script include. So if you go to script include table, you'll find "KBKnowledge" which is empty, but extends read only OOB script include "KBKnowledgeSNC" which contains all the related code and the function.
You can modify the KBKnowledge one to overwrite functions in the SNC one, but there's no need to do that.
You can just add your code in the "Run this script" section after the "new KBKnowledge().notifyForExpiringArticles(); and it will work fne.
For example I'd just add the gr query from the condition script and then based on the results I'd create tasks. Feel free to play around with that to see how it works.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-27-2025 05:57 AM
How to do this for one week prior waring notification