Skip to page contentSkip to chat
ServiceNow support
    • Community
      Ask questions, give advice, and connect with fellow ServiceNow professionals.
      Developer
      Build, test, and deploy applications
      Documentation
      Find detailed information about ServiceNow products, apps, features, and releases.
      Impact
      Accelerate ROI and amplify your expertise.
      Learning
      Build skills with instructor-led and online training.
      Partner
      Grow your business with promotions, news, and marketing tools
      ServiceNow
      Learn about ServiceNow products & solutions.
      Store
      Download certified apps and integrations that complement ServiceNow.
      Support
      Manage your instances, access self-help, and get technical support.
Service Portal knowledge search displaying attachment link - Support and Troubleshooting
  • >
  • Knowledge Base
  • >
  • Support and Troubleshooting (Knowledge Base)
  • >
  • Service Portal knowledge search displaying attachment link
KB0636019

Service Portal knowledge search displaying attachment link


4143 Views Last updated : Jul 22, 2025 public Copy Permalink
KB Summary by Now Assist

Issue

To download an attachment directly for the search page while searching for a knowledge article or text file contained in a knowledge article, which is similar in functionality to $knowledge.do, follow the steps below to configure the Search Page widget and Search source to display the attachment.

 

Adding spAttachmentManager directive to Search Page widget

  1. Navigate to Service Portal > Widget
  2. Search for a widget named Search Page, the widget handling the searching
    Link: https://<yourInstance>.service-now.com/sp_widget.do?sys_id=b8c57073cb10020000f8d856634c9cfc
  3. In the Related list in the bottom of the page, click Edit in the Angular Providers tab.
  4. Search for spAttachmentManager and add it to the page.

Note: The search page does not need to be cloned to add the Angular Providers.

Using the spAttachmentManager directive in the Knowledge Search source

  1. Navigate to Service Portal > Portal
  2. Search for the Portal record to configure this feature. If using out of box portal, search for the record Service Portal
  3. In the related list, open the search source called Knowledge Base
    Link to the OOB Search Source: https://<yourInstance>.service-now.com/sp_search_source.do?sys_id=c6170ae86721220023c82e08f585efe6
  4. Add the following piece of code to the Search page template to use the spAttachmentManager directive: 
    <sp-attachment-manager table="'kb_knowledge'" sys-id="item.sys_id" omit-edit="true"></sp-attachment-manager>

Knowledge Search Source code demonstration:


The world works with ServiceNow.

Sign in for more! There's more content available only to authenticated users Sign in for more!
Did this KB article help you?
Did this KB article help you?

Attachments

Attachments

  • Adding spAttachmentManager to the widget.png
  • Search source with spAttachmentManager .png
  • Service Portal attchment search.png

How would you rate your Now Support digital experience?

*

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

What can we improve? Please select all that apply.

What are we doing well? Please select all that apply.

Tell us more

*

Do you expect a response from this feedback?

  • Terms and conditions
  • Privacy statement
  • GDPR
  • Cookie policy
  • © 2025 ServiceNow. All rights reserved.