---
sourceDocument: Yokohama-API-Referenz
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/de-DE/yokohama/api-reference

 Release :

    - yokohama

ft:locale :

    - de-DE

ft:publication_title :

    - Yokohama-API-Referenz

ft:clusterId :

    - crapiref

bundleId :

    - crapiref

workflow :

    - Creator


---

# Systemdokumentliste: Bereichsbezogen, global

# Systemdokumentliste: Bereichsbezogen, global {#ariaid-title1}

* Freigeben Version: Yokohama
* 
* Aktualisiert 30. Januar 2025
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 Minute Lesedauer

Die Systemdokumentliste Die API bietet Methoden zum Festlegen der Datensatzfelder in der Tabelle „Dokumentlisten" \[ds_document_lists\].

Diese API erfordert DokumentverwaltungPlugin (com.snc.platform_document_management) und wird in bereitgestellt `sn_doc_Services `Namespace. Informationen finden Sie unter [Dokumentservices](https://www.servicenow.com/docs/access?context=document-services-landing-page&version=yokohama&pubname=yokohama-servicenow-platform&ft:locale=en-US).

Verwenden Sie zum Erstellen oder Verwalten einer Dokumentliste [DocumentListService-API](https://servicenow-prod.fluidtopics.net/zjZrSUpgPqD3L1SsUDDtZg#DocumentListServiceBothAPI "Die DocumentListService Die API bietet Methoden zum Erstellen, Löschen und Aktualisieren einer Dokumentliste.").

## SystemDocumentList -- SystemDocumentList(Zeichenfolge docListName) {#ariaid-title2}

Instanziiert einen Systemdokumentliste Objekt.
{#SysDocList-SystemDocumentList_S__table_o12_jrk_spb__entry__3}

| Name | Typ | Beschreibung |
|-|-|-|
| DocListName | Zeichenfolge | Name der Dokumentliste. |
[Tabelle : 1. Parameter]

{#SysDocList-SystemDocumentList_S__table_o12_jrk_spb} {#SysDocList-SystemDocumentList_S__table_p12_jrk_spb__entry__2}

| Typ | Beschreibung |
|-|-|
| Keine |   |
[Tabelle : 2. Rückgaben]

{#SysDocList-SystemDocumentList_S__table_p12_jrk_spb}  
Das folgende Beispiel zeigt, wie ein instanziiert wird Systemdokumentliste Objekt.

    var docList = new sn_doc_services.SystemDocumentList();

## SystemDocumentList -- Beschreibung (Zeichenfolgenbeschreibung) {#ariaid-title3}

Legt das Beschreibungsfeld eines neuen Dokumentlistendatensatzes fest.
{#SysDocList-description_S__table_o12_jrk_spb__entry__3}

| Name | Typ | Beschreibung |
|-|-|-|
| Beschreibung | Zeichenfolge | Beschreibung der Dokumentliste. |
[Tabelle : 3. Parameter]

{#SysDocList-description_S__table_o12_jrk_spb} {#SysDocList-description_S__table_p12_jrk_spb__entry__2}

| Typ | Beschreibung |
|-|-|
| Keine |   |
[Tabelle : 4. Rückgaben]

{#SysDocList-description_S__table_p12_jrk_spb}  
Das folgende Beispiel zeigt, wie der Dokumentliste eine Beschreibung hinzugefügt wird. Siehe auch [DocumentListService-API](https://servicenow-prod.fluidtopics.net/zjZrSUpgPqD3L1SsUDDtZg#DocumentListServiceBothAPI "Die DocumentListService Die API bietet Methoden zum Erstellen, Löschen und Aktualisieren einer Dokumentliste.").

    var dL = new sn_doc_services.SystemDocumentList('My document list');

    // Define the document list field
    dL.description('description');

    var docList = new sn_doc_services.DocumentListService();
    gs.info(JSON.stringify(docList.createDocumentList(dL), null, 2));

Ausgabe:

    {
      "message": "Create List for the given name : My document list, List sysId : b2c021a924683c10f877a6fed1c2b0b1 is successful.",
      "request_id": "b2c021a924683c10f877a6fed1c2b0b1",
      "status": "success"
    }

## SystemDocumentList -- Name(Zeichenfolge docListName) {#ariaid-title4}

Legt das Namensfeld eines Dokumentlistendatensatzes fest.
Hinweis:  
Sie können den Namen auch als Parameter in festlegen SystemdokumentListe() Konstruktor.
{#SysDocList-name_S__table_o12_jrk_spb__entry__3}

| Name | Typ | Beschreibung |
|-|-|-|
| DocListName | Zeichenfolge | Name der Dokumentliste. |
[Tabelle : 5. Parameter]

{#SysDocList-name_S__table_o12_jrk_spb} {#SysDocList-name_S__table_p12_jrk_spb__entry__2}

| Typ | Beschreibung |
|-|-|
| Keine |   |
[Tabelle : 6. Rückgaben]

{#SysDocList-name_S__table_p12_jrk_spb}  
Das folgende Beispiel zeigt, wie eine vorhandene Dokumentliste umbenannt wird. Siehe auch [DocumentListService](https://servicenow-prod.fluidtopics.net/zjZrSUpgPqD3L1SsUDDtZg#DocumentListServiceBothAPI "Die DocumentListService Die API bietet Methoden zum Erstellen, Löschen und Aktualisieren einer Dokumentliste.").

    var docListID = 'b2c021a924683c10f877a6fed1c2b0b1';
    var docListUpdate = new sn_doc_services.SystemDocumentList();

    docListUpdate.name('name change');

    var docListSvc = new sn_doc_services.DocumentListService();
    gs.info(JSON.stringify(docListSvc.updateDocumentList(docListID , docListUpdate), null, 2));

Ausgabe:

    {
      "message": "Update List for the given sysId : b2c021a924683c10f877a6fed1c2b0b1 is successful.",
      "request_id": "b2c021a924683c10f877a6fed1c2b0b1",
      "status": "success"
    }


