When an KB article is about to expire it triggers a notification using event and now along with notification a normal task tickets is required assigned with all the KB article data.

sonalin
Tera Expert

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.

1 ACCEPTED SOLUTION

sonalin
Tera Expert

A new scripted Schedule Job was created. We didn't played around the OOB notifications.

 

View solution in original post

5 REPLIES 5

Weird
Mega Sage

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.

sonalin
Tera Expert

Hi Joni,

Thank you for your reply.

It is an out of box event which is triggered on below schedule job.

 

find_real_file.png

find_real_file.png

Run this script notifyForExpiringArticles() where it is located I was not able to find it.

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.

How to do this for one week prior waring notification