Add Short Description on Knowledge email script

Alex Edmiston1
Giga Guru

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? 

 

find_real_file.png

1 ACCEPTED SOLUTION

Eric Viets
Mega Expert

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!

View solution in original post

19 REPLIES 19

Can you screenshot what you have now?


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

find_real_file.png

Hi,

I mean for the event itself, like...not this literal specific event that ran, but the event listing in registry. A screenshot of that. Thanks!


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

This?

 

find_real_file.png

Patrick Fedigan
Giga Guru

Hello Alex,

You'll need to have short_description passed in the event parameter 2 if it isn't already.

Cheers,