OBLYTECH Logo
OBLYTECH Logo

Knowledge Block in ServiceNow: Reusable Article Content

A knowledge block in ServiceNow is reusable content that you write once and insert into several knowledge articles in the same knowledge base. Each block carries its own user criteria, so one article can show a reader a section and hide it from someone else. The feature is enabled for each knowledge base separately. For the wider concept, see what a knowledge article is.

What a knowledge block does

Knowledge bases often collect duplicated text over time. Shared policy text gets pasted into many articles, and when the wording changes someone has to find each copy. A knowledge block addresses that problem by moving the shared text into its own record, which articles then pull in. The knowledge management section covers the surrounding topics.

A second job sits beside reuse: audience control. Each block is secured by user criteria, and those criteria decide whether a reader can or cannot see the block inside an article. Criteria can be built on users, groups, roles, companies, locations or departments. The reader opens one article and sees the parts meant for them. To set up the criteria themselves, see knowledge base setup and user criteria.

Blocks hold text and images. A block does not display its attached files by default, so a file attached to a block does not appear as part of the article body.

A common pattern is one holiday calendar article with a location-specific block for each office. Employees search for one article and read the block that matches their location, and the HR team maintains a single article instead of one per office.

Where knowledge blocks are supported

Three limits shape how you plan blocks.

First, blocks work in HTML knowledge articles. When you create a block, the Article type field is set to HTML automatically, and articles of the wiki type do not support blocks.

Second, a block goes into a text field of the article. It can be added to or removed from more than one HTML field in an article template, including custom templates.

Third, the feature is enabled one knowledge base at a time. If it has not been enabled for a knowledge base, the Add Blocks button is hidden when you edit an article there.

Who does what

The work divides across four roles.

Role Responsibility
Administrator Activates the Knowledge Blocks plugin
Knowledge administrator or manager Enables knowledge blocks for each knowledge base
Knowledge contributor Creates blocks and inserts them into articles
System administrator Can turn off article versioning by setting a property

The plugin includes demo data and activates related plugins that are not already active. Activating it also activates Advanced Knowledge Management, which brings article versioning. Blocks work with or without versioning, so a team that does not want versions can disable them. For the publishing states a block moves through, see the knowledge article lifecycle.

Create a knowledge block

Creating a block needs contributor access to the knowledge base, and the feature must already be enabled for that base. The menu path is All > Knowledge > Knowledge Blocks, then select New.

The form has these fields:

Field What it holds
Number Assigned automatically
Knowledge base The base the block belongs to
Category The knowledge category or subcategory
Ownership Group The group that owns the block; shown only when the ownership groups feature is enabled
Can read User criteria that grant read access to the block
Cannot read User criteria that deny read access to the block
Valid to The expiry date of the block
Short description A brief label for the block
Text The content itself
Version Set automatically when article versioning is enabled
Article type Set automatically to HTML
Workflow The publication state, such as Draft, Published or Retired

Save the record, then select Publish. Whether anything else happens, such as an approval step, depends on the publishing workflow of the knowledge base. A clear short description helps contributors tell similar blocks apart.

Visibility through Can read and Cannot read

The two criteria fields give you grant and deny logic on the same block. Can read lists who is allowed to see the content, and Cannot read lists who is blocked from it. Criteria also exist at the knowledge base level, and the visible result depends on both the knowledge base and the block.

Expiry with Valid to

Valid to sets an end date. After that date the block content is hidden in articles and excluded from search. This suits content with a natural end, such as a seasonal notice or a policy that is replaced on a known date.

Add a block to an article

Inserting blocks needs contributor access to the knowledge base and the Knowledge Management Advanced plugin. The steps run like this:

  1. Go to All > Self-Service > My Knowledge Articles.
  2. Select New, or open an existing article. With New, choose an article template if templates are enabled under Knowledge > Article templates.
  3. Fill in the article form.
  4. Click in the article text where the block should appear, then select Add Blocks.
  5. In the side pane, search, run an advanced search, view blocks and insert the one you want. New blocks can also be created from this pane.
  6. Optionally move a block. With a mouse, drag it. With a keyboard, place the cursor to the left of the block, press the right arrow to select it, then cut with Ctrl+X and paste with Ctrl+V.
  7. Save or update, then publish.

If a block does not show up in the search, check its state and language. A block has to be published, in the same language and knowledge base as the article, before the article can use it. The number of results the side pane shows is controlled by the property glide.knowman.add_blocks.search_results. The default minimum is 6 and the default maximum is 25.

Preview what each reader sees

Because one article can render differently for different people, previewing matters. Use the article preview by user, and by date for a published article, to see what each reader gets based on the criteria at the knowledge base and block levels.

In practice, this is where wrong criteria get caught. If the holiday calendar block meant for one office is visible to everyone, previewing as a user from another office exposes the mistake before readers do. For the wider design of who sees what, see knowledge management security and access design.

Edit a block that is already in use

Edits happen on the block record rather than inside the article text. Open the block record. If the block is already published, check it out first. Then change the content in the editor, save it, and publish it when it is ready. Whether the change goes live at once or waits for approval depends on the publishing workflow of the knowledge base. For ownership and review practice, see the knowledge management governance model.

Retire a block

Retiring a published block means it no longer appears in the article. It needs contribute-level access. Go to All > Knowledge > Knowledge Blocks > Published, open the record, and select Retire. The retired block no longer appears in the article.

A block can be deleted only when no knowledge article uses it, and that count includes retired articles and earlier article versions. To retire a block that is attached to an article, the system property glide.knowman.allow_retire_block must be set to true. That option is available starting in the Australia release.

Custom search and viewers

If your application uses a custom search or a custom knowledge article viewer, integrate it with the Knowledge API or the Knowledge Blocks API. The step applies only to custom search or viewer setups. For the HR side of the same feature, see HR knowledge management.

Frequently asked questions

Can I use a knowledge block in a wiki article?

No. Blocks are supported in HTML knowledge articles, and wiki-type articles do not support them.

Who can see the content of a block?

Readers who pass the criteria set at the knowledge base level and at the block level. The Can read and Cannot read fields on the block control access to that content, and criteria can be based on users, groups, roles, companies, locations or departments.

Why is the Add Blocks button missing?

The feature has to be enabled for the knowledge base the article belongs to. When it is not enabled, the button is hidden.

What happens when a block reaches its Valid to date?

The block content is hidden in articles and excluded from search.

Do attached files show inside a block?

Not by default. A block displays text and images, and attached files are not shown by default.