---
sourceDocument: Australia ServiceNow AI Platform Capabilities
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/de-DE/servicenow-platform

 Release :

    - australia

ft:locale :

    - de-DE

ft:publication_title :

    - Australia ServiceNow AI Platform Capabilities

ft:clusterId :

    - platcap

bundleId :

    - platcap

workflow :

    - Platform


---

# KBBlock - Global

# KBBlock - Global {#ariaid-title1}

* Freigeben Version: Australia
* 
* Aktualisiert 12. März 2026
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 Minute Lesedauer

The `KBBlock` API is included with knowledge blocks
\[com.snc.knowledge_blocks\] as a script include. It provides methods to use with the knowledge
blocks feature, such as integration with a custom knowledge article viewer.

## KBBlock - KBBlock() {#ariaid-title2}

Instantiates a KBBlock object in a global application.
{#kbblock-kbblock__table_pk3_gp1_sdb__entry__3}

| Name | Type | Description |
|-|-|-|
| None |   |   |
[Tabelle : 1. Parameters]

{#kbblock-kbblock__table_pk3_gp1_sdb}

## KBBlock - getArticleContent(GlideRecord knowledgeRecord) {#ariaid-title3}

Gets knowledge articles with relevant knowledge block content that a user has access to
read.
If you have activated the knowledge blocks feature and are using a custom knowledge article
viewer with your application, your viewer may not display articles that expand the relevant
block content. To expand block content that a user has access to read, you must call the
`getArticleContent()` method inside your custom viewer.
{#kbblock-getarticlecontent_gr__table_np1_bwj_4db__entry__3}

| Name | Type | Description |
|-|-|-|
| knowledgeRecord | GlideRecord | GlideRecord of the knowledge article to display. |
[Tabelle : 2. Parameters]

{#kbblock-getarticlecontent_gr__table_np1_bwj_4db} {#kbblock-getarticlecontent_gr__table_op1_bwj_4db__entry__2}

| Type | Description |
|-|-|
| String | Knowledge article with relevant knowledge block content that a user has access to read. |
[Tabelle : 3. Returns]

{#kbblock-getarticlecontent_gr__table_op1_bwj_4db}  

### Integrating a custom knowledge article viewer with knowledge blocks


    // This function returns the article text with expanded block content.
    function getArticleText(kbSysId) {
      var knowledgeRecord = new GlideRecord('kb_knowledge');
      var kbText='';
      if(knowledgeRecord.get(kbSysId)) {
        if(new GlidePluginManager().isActive('com.snc.knowledge_blocks')) {
          kbText = new KBBlock();
          kbText.getArticleContent(knowledgeRecord);
        }
        else
          kbText = knowledgeRecord.getValue('text');
        }
      return kbText;
    }

    // This is an example of how to call the function defined above.
    var kbText = getArticleText('01a1ca5b6710130038876c3b5685efd3');


