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

Allen Andreas
Administrator
Administrator

Hi,

Are all the other lines coming across with correct information? Created on, number, etc.?


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

Yes, it looks like the below: 

find_real_file.png

Are those other fields defined in your parameters?


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

They are... I'm kinda new to this. How would I add short_description to the event parameter 2?