Has anyone ever tried to add "Short Description" text to the list view for Knowlege Article approvals (approval form for the Knowledge Base)?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2016 12:54 PM
We are trying to add a "task" to approve a Knowledge Article. Can't use the standard SN process so having to re-create a similar process. When in list view do not see "Short Description" text but do see the text on the notification email. Suspect that "Short Desc" is from an item or task table which the Knowledge list doesn't include. So, how can we move content into the Short Desc. field?
Going thru knowledge base workflow and as you come across the manager approval the Short Desc isn't generated from the Knowledge base article. This field appears blank; suspect comes from Task Table while Knowledge Base article comes from Knowledge Base workflow. So, wondering how others have generated information and subsequent approval form in this situation.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2016 04:56 PM
Hi Yolanda,
Your short description is probably the dot walked field of the task it is related to with Approval for (sysapproval). If it is not, then it is probably a custom field you made. However, kb_knowledge is not extended from task so you can't dot-walk it. It rather uses the document_id mechanism.
What we have done to show the knowledge short description in our approvals list was to create a custom field on the approval table. We chose it to make it a calculated value but you could also use a business rule to populate that field. Here is the script we use in the calculated script:
if(current.source_table != ''){
var document = new GlideRecord(current.source_table);
document.get(current.document_id);
current.u_short_description = document.short_description;
}
This script assumes that your document_id and source_table will be populated even for approval coming from task. You could either make an alternate condition to process approval for task differently or as we did, create a business rule on the approval table to populate document_id and source_table when only the sysapproval field is populated.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2019 07:14 AM
Perfect solution. I have also added conditions to add for Task table as well.
Thanks
MM
