Notifications

84 views

Description

When creating a knowledge article using a template, the attachment does not show up in the knowledge article even though the knowledge has been check to display

Steps to Reproduce

  1. Login in an instance
  2. Activate the plugin com.snc.knowledge_advanced
  3. Navigate to "Knowledge -> Admnistration -> Article Templates" and set "How to" to be active
  4. Navigate to $knowledge.do and click on Create an Article
  5. Select "How to", fill out the form and attach an image
  6. Save and publish the article
  7. Open the article through KB Article Page widget:
    sp?id=kb_article&sys_id=SYSID
  8. The attachment is not shown
  9. If you repeat all the steps and you select "Standard" in the third step the attachment would be visible

Workaround

This problem has been fixed. If you are able to upgrade, review the Fixed In or Intended Fix Version fields to determine whether any versions have a planned or permanent fix.

If you are unable to upgrade, please use the following workaround:

1) clone the KB Article Page widget

2) add the following line to the server script just below where t.sys_id is set: 
t.table = articleGR.getRecordClassName(); 

3) in the Body HTML template where the sp-attachment-manager directive is called, change 
table="'kb_knowledge'" 
to 
table="::data.table"

This will require to reconfigure the KB article page to display the widget or to duplicate and make the changes there to preserve the out of box page.


Related Problem: PRB1327236

Seen In

SR - IRM - Audit Management - New York 2019 Q3
SR - IRM - GRC Profiles - Madrid 2019 Q2
SR - IRM - GRC Workbench - New York 2019 Q3
SR - IRM - Policy and Compliance - Madrid 2019 Q2
SR - IRM - Risk Management - New York 2019 Q3

Intended Fix Version

Orlando

Safe Harbor Statement

This "Intended Fix Version" information is meant to outline ServiceNow's general product direction and should not be relied upon in making a purchasing decision. The information provided here is for information purposes only and may not be incorporated into any contract. It is not a commitment, promise, or legal obligation to deliver any material, code, or functionality. The development, release, and timing of any features or functionality described for our products remains at ServiceNow's sole discretion.

Associated Community Threads

There is no data to report.

Article Information

Last Updated:2019-11-14 19:10:08
Published:2019-08-21