
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2018 12:21 PM
Hello -- I'm trying to add the short description field onto the below script but keep getting undefined on the message. Any ideas on what to change?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2019 08:48 AM
I now just had the same problem and *finally* figured it out.
The code that needs to be modified is in: System Policy… Events… Script Actions. Activity Fanout Manager for KM
In the function getKnowledgeObject() section, you'll want to add this line:
knowledge_obj.short_description = gr.getValue('short_description');
Then, in your notifications, you can add something like:
template.print("<b>Article title</b>: "+obj.short_description+"<br/>");
Please mark as helpful/correct answer. Thanks!
And if someone can get this into baseline code, that would be even better!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2019 03:35 PM
Alex,
Did you get this to work? I am having the same problem and I do not see where the parm 1 and parm 2 fields are in the event registry.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2019 03:45 PM
You just need to pass the parms in the script, not needed to define in event registry
Here is an example
gs.eventQueue('event_name', current, parm1, parm2)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2019 04:12 PM
Thanks for answering, this what it returns after putting your suggestion in, any thoughts?
An article has been created in the Instrument Systems (IS) Knowledge Base.
Article Number: KB0011498
Published Date: 2019-01-08 10:10:34
{"author":"Cindy Lindsey","created_on":"2019-01-08 10:10:34","knowledge_base":"Instrument Systems (IS)","latest_version":"1.0","number":"KB0011498","receiver":"Chau","revised_by":"","sys_id":"6bf2e3bedb3ae7402389f4b5ae961919","updated_on":"2019-01-08 10:11:34"}

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2019 04:36 PM
Please do the following
- You need find out which event is triggering the notification and where that event resides. Most probably event might be in a business rule
- In the business rule you need to update the eventQueue syntax as provided above
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2019 04:50 PM
In both use cases, it looks like a JSON object is being passed via event.parm2, but that object does not have a short description element in the object. Whatever script you're using to create that object that's being passed into event.parm2 will need you to also include a "short_description":"Short description value" in the object.