# Services

## AccountScriptingService

### Description

Service zur Verarbeitung von Accounts

### Methods

***activate***

Aktiviert ein DTO

*Return type:* [Account](https://developer.vario-software.de/scripting-reference/types#Account)

| Datatype |     Name     | Description                 | Required |
| -------- | :----------: | --------------------------- | -------- |
| *number* | idToActivate | ID vom zu aktivierenden DTO | Yes      |

***create***

Persistiert ein DTO

*Return type:* [Account](https://developer.vario-software.de/scripting-reference/types#Account)

| Datatype                                                                         |   Name   | Description               | Required |
| -------------------------------------------------------------------------------- | :------: | ------------------------- | -------- |
| [Account](https://developer.vario-software.de/scripting-reference/types#Account) | toCreate | Das zu persistierende DTO | Yes      |

***createAddress***

Erstellt eine Adresse

*Return type:* [AccountAddress](https://developer.vario-software.de/scripting-reference/types#AccountAddress)

| Datatype                                                                                       |    Name   | Description                | Required |
| ---------------------------------------------------------------------------------------------- | :-------: | -------------------------- | -------- |
| *number*                                                                                       | accountId | ID eines Accounts          | Yes      |
| [AccountAddress](https://developer.vario-software.de/scripting-reference/types#AccountAddress) |  address  | Die zu erstellende Adresse | Yes      |

***createBankdetail***

Erstellt ein Bankdetail

*Return type:* [AccountBankdetail](https://developer.vario-software.de/scripting-reference/types#AccountBankdetail)

| Datatype                                                                                             |    Name    | Description              | Required |
| ---------------------------------------------------------------------------------------------------- | :--------: | ------------------------ | -------- |
| *number*                                                                                             |  accountId | ID des Accounts          | Yes      |
| [AccountBankdetail](https://developer.vario-software.de/scripting-reference/types#AccountBankdetail) | bankdetail | anzulegendes Bankdetails | Yes      |

***createPerson***

Erstellt einen Ansprechpartner

*Return type:* [AccountPerson](https://developer.vario-software.de/scripting-reference/types#AccountPerson)

| Datatype                                                                                     |    Name   | Description                        | Required |
| -------------------------------------------------------------------------------------------- | :-------: | ---------------------------------- | -------- |
| *number*                                                                                     | accountId | ID eines Accounts                  | Yes      |
| [AccountPerson](https://developer.vario-software.de/scripting-reference/types#AccountPerson) |   person  | Der zu erstellende Ansprechpartner | Yes      |

***deactivate***

Deaktiviert ein DTO

*Return type:* [Account](https://developer.vario-software.de/scripting-reference/types#Account)

| Datatype |      Name      | Description                   | Required |
| -------- | :------------: | ----------------------------- | -------- |
| *number* | idToDeactivate | ID vom zu deaktivierenden DTO | Yes      |

***deleteAddress***

Löscht eine Adresse

| Datatype |    Name   | Description       | Required |
| -------- | :-------: | ----------------- | -------- |
| *number* | accountId | ID eines Accounts | Yes      |
| *number* | addressId | ID einer Adresse  | Yes      |

***deleteBankdetail***

Löscht ein Bankdetail

| Datatype |     Name     | Description        | Required |
| -------- | :----------: | ------------------ | -------- |
| *number* |   accountId  | ID des Accounts    | Yes      |
| *number* | bankdetailId | ID des Bankdetails | Yes      |

***deleteById***

Löscht eine Entity

| Datatype | Name | Description                 | Required |
| -------- | :--: | --------------------------- | -------- |
| *number* |  id  | ID der zu löschenden Entity | Yes      |

***deletePerson***

Löscht einen Ansprechpartner

| Datatype |    Name   | Description               | Required |
| -------- | :-------: | ------------------------- | -------- |
| *number* | accountId | ID eines Accounts         | Yes      |
| *number* |  personId | ID eines Ansprechpartners | Yes      |

***getAddress***

Liest eine Adresse

*Return type:* [AccountAddress](https://developer.vario-software.de/scripting-reference/types#AccountAddress)

| Datatype |    Name   | Description       | Required |
| -------- | :-------: | ----------------- | -------- |
| *number* | accountId | ID eines Accounts | Yes      |
| *number* | addressId | ID einer Adresse  | Yes      |

***getAddresses***

Liefert die Adressen eines Accounts (sortiert)

*Return type:* Array<[AccountAddress](https://developer.vario-software.de/scripting-reference/types#AccountAddress)>

| Datatype |    Name   | Description       | Required |
| -------- | :-------: | ----------------- | -------- |
| *number* | accountId | ID eines Accounts | Yes      |

***getBankdetail***

Liest ein Bankdetail

*Return type:* [AccountBankdetail](https://developer.vario-software.de/scripting-reference/types#AccountBankdetail)

| Datatype |     Name     | Description          | Required |
| -------- | :----------: | -------------------- | -------- |
| *number* |   accountId  | ID des Accounts      | Yes      |
| *number* | bankdetailId | ID eines Bankdetails | Yes      |

***getBankdetails***

Liefert die Bankdetails eines Accounts

*Return type:* Array<[AccountBankdetail](https://developer.vario-software.de/scripting-reference/types#AccountBankdetail)>

| Datatype |    Name   | Description     | Required |
| -------- | :-------: | --------------- | -------- |
| *number* | accountId | ID des Accounts | Yes      |

***getNewDto***

Erstellt eine neue DTO-Instanz

*Return type:* [Account](https://developer.vario-software.de/scripting-reference/types#Account)

***getPerson***

Liest einen Ansprechpartner

*Return type:* [AccountPerson](https://developer.vario-software.de/scripting-reference/types#AccountPerson)

| Datatype |    Name   | Description               | Required |
| -------- | :-------: | ------------------------- | -------- |
| *number* | accountId | ID eines Accounts         | Yes      |
| *number* |  personId | ID eines Ansprechpartners | Yes      |

***getPersons***

Liefert die Ansprechpartner eines Accounts (sortiert)

*Return type:* Array<[AccountPerson](https://developer.vario-software.de/scripting-reference/types#AccountPerson)>

| Datatype |    Name   | Description       | Required |
| -------- | :-------: | ----------------- | -------- |
| *number* | accountId | ID eines Accounts | Yes      |

***readAllById***

Liest eine Liste von DTOs

*Return type:* Array<[Account](https://developer.vario-software.de/scripting-reference/types#Account)>

| Datatype | Name | Description                  | Required |
| -------- | :--: | ---------------------------- | -------- |
| *Array*  |  ids | Die Liste der gelesenen DTOs | Yes      |

***readById***

Liest ein DTO

*Return type:* [Account](https://developer.vario-software.de/scripting-reference/types#Account)

| Datatype | Name | Description            | Required |
| -------- | :--: | ---------------------- | -------- |
| *number* |  id  | ID vom zu lesenden DTO | Yes      |

***sendNotification***

Schreibt eine Benachrichtigung auf Basis des Accounts

| Datatype                                                                                                 |      Name     | Description | Required |
| -------------------------------------------------------------------------------------------------------- | :-----------: | ----------- | -------- |
| *number*                                                                                                 |   accountId   |             | No       |
| [ScriptOutputRequest](https://developer.vario-software.de/scripting-reference/types#ScriptOutputRequest) | outputRequest |             | No       |

***store***

Persistiert eine DTO

*Return type:* [Account](https://developer.vario-software.de/scripting-reference/types#Account)

| Datatype                                                                         |   Name  | Description               | Required |
| -------------------------------------------------------------------------------- | :-----: | ------------------------- | -------- |
| [Account](https://developer.vario-software.de/scripting-reference/types#Account) | toStore | Das zu persistierende DTO | Yes      |

***update***

Aktualisiert ein persistiertes DTO

*Return type:* [Account](https://developer.vario-software.de/scripting-reference/types#Account)

| Datatype                                                                         |   Name   | Description                   | Required |
| -------------------------------------------------------------------------------- | :------: | ----------------------------- | -------- |
| [Account](https://developer.vario-software.de/scripting-reference/types#Account) | toUpdate | Die zu aktualisierende Entity | Yes      |

***updateAddress***

Aktualisiert eine Adresse

*Return type:* [AccountAddress](https://developer.vario-software.de/scripting-reference/types#AccountAddress)

| Datatype                                                                                       |    Name   | Description                    | Required |
| ---------------------------------------------------------------------------------------------- | :-------: | ------------------------------ | -------- |
| *number*                                                                                       | accountId | ID eines Accounts              | Yes      |
| [AccountAddress](https://developer.vario-software.de/scripting-reference/types#AccountAddress) |  address  | Die zu aktualisierende Adresse | Yes      |

***updateBankdetail***

Aktualisiert ein Bankdetail

*Return type:* [AccountBankdetail](https://developer.vario-software.de/scripting-reference/types#AccountBankdetail)

| Datatype                                                                                             |    Name    | Description                    | Required |
| ---------------------------------------------------------------------------------------------------- | :--------: | ------------------------------ | -------- |
| *number*                                                                                             |  accountId | ID eines Accounts              | Yes      |
| [AccountBankdetail](https://developer.vario-software.de/scripting-reference/types#AccountBankdetail) | bankdetail | zu aktualisierendes Bankdetail | Yes      |

***updatePerson***

Aktualisiert einen Ansprechpartner

*Return type:* [AccountPerson](https://developer.vario-software.de/scripting-reference/types#AccountPerson)

| Datatype                                                                                     |    Name   | Description                            | Required |
| -------------------------------------------------------------------------------------------- | :-------: | -------------------------------------- | -------- |
| *number*                                                                                     | accountId | ID eines Accounts                      | Yes      |
| [AccountPerson](https://developer.vario-software.de/scripting-reference/types#AccountPerson) |   person  | Der zu aktualisierende Ansprechpartner | Yes      |

## ArticleListingScriptingService

### Description

Service zur Verarbeitung von Artikel-Listings im Skripten

### Methods

***create***

Erstellt ein Listing

*Return type:* [ArticleListing](https://developer.vario-software.de/scripting-reference/types#ArticleListing)

| Datatype                                                                                       |      Name      | Description             | Required |
| ---------------------------------------------------------------------------------------------- | :------------: | ----------------------- | -------- |
| *number*                                                                                       |    articleId   | ID des Artikels         | Yes      |
| [ArticleListing](https://developer.vario-software.de/scripting-reference/types#ArticleListing) | articleListing | Zu erstellendes Listing | Yes      |
| *string*                                                                                       |  languageCode  | Zu verwendende Sprache  | Yes      |

***deleteById***

Löscht eine Entity

| Datatype | Name | Description                 | Required |
| -------- | :--: | --------------------------- | -------- |
| *number* |  id  | ID der zu löschenden Entity | Yes      |

***getNewDto***

Erstellt eine neue ArticleListing-Instanz

*Return type:* [ArticleListing](https://developer.vario-software.de/scripting-reference/types#ArticleListing)

***readAllByArticleId***

Liest alle Listings zu einem Artikel mit Texten zur Sprache languageCode

*Return type:* Array<[ArticleListing](https://developer.vario-software.de/scripting-reference/types#ArticleListing)>

| Datatype |     Name     | Description            | Required |
| -------- | :----------: | ---------------------- | -------- |
| *number* |   articleId  | ID des Artikels        | Yes      |
| *string* | languageCode | Zu verwendende Sprache | Yes      |

***readAllByArticleId***

Liest alle Listings zu einem Artikel

*Return type:* Array<[ArticleListing](https://developer.vario-software.de/scripting-reference/types#ArticleListing)>

| Datatype |    Name   | Description     | Required |
| -------- | :-------: | --------------- | -------- |
| *number* | articleId | ID des Artikels | Yes      |

***readAllById***

Liest eine Liste von DTOs

*Return type:* Array<[ArticleListing](https://developer.vario-software.de/scripting-reference/types#ArticleListing)>

| Datatype | Name | Description                  | Required |
| -------- | :--: | ---------------------------- | -------- |
| *Array*  |  ids | Die Liste der gelesenen DTOs | Yes      |

***readById***

Liest ein DTO

*Return type:* [ArticleListing](https://developer.vario-software.de/scripting-reference/types#ArticleListing)

| Datatype | Name | Description            | Required |
| -------- | :--: | ---------------------- | -------- |
| *number* |  id  | ID vom zu lesenden DTO | Yes      |

***readById***

Liest ein Artikel-Listing mit Texten zur Sprache languageCode

*Return type:* [ArticleListing](https://developer.vario-software.de/scripting-reference/types#ArticleListing)

| Datatype |     Name     | Description                 | Required |
| -------- | :----------: | --------------------------- | -------- |
| *number* |   listingId  | ID des zu lesenden Listings | Yes      |
| *string* | languageCode | Zu verwendende Sprache      | Yes      |

***update***

Akutalisiert ein Listing

*Return type:* [ArticleListing](https://developer.vario-software.de/scripting-reference/types#ArticleListing)

| Datatype                                                                                       |      Name      | Description                 | Required |
| ---------------------------------------------------------------------------------------------- | :------------: | --------------------------- | -------- |
| *number*                                                                                       |    listingId   | ID des Listings             | Yes      |
| [ArticleListing](https://developer.vario-software.de/scripting-reference/types#ArticleListing) | articleListing | Zu aktualisierendes Listing | Yes      |
| *string*                                                                                       |  languageCode  | Zu verwendende Sprache      | Yes      |

## ArticleScriptingService

### Description

Service zur Verarbeitung von Artikeln im Skripten

### Methods

***activate***

Aktiviert ein DTO

*Return type:* [Article](https://developer.vario-software.de/scripting-reference/types#Article)

| Datatype |     Name     | Description                 | Required |
| -------- | :----------: | --------------------------- | -------- |
| *number* | idToActivate | ID vom zu aktivierenden DTO | Yes      |

***addLabelToPrintBatch***

Fügt Informationen zum Druck Etiketten zu einem Artikel zu einem Etikettendrucklauf hinzu

| Datatype |          Name         | Description                        | Required |
| -------- | :-------------------: | ---------------------------------- | -------- |
| *string* |    batchIdentifier    | ID des Etikettendrucklaufs         | Yes      |
| *number* |       articleId       | ID des zu druckenden Artikels      | Yes      |
| *number* | articleSerialNumberId | ID der zu druckenden Seriennummer  | No       |
| *number* |       labelCount      | Anzahl der zu druckenden Etiketten | Yes      |

***addLabelToPrintBatch***

Fügt Informationen zum Druck Etiketten zu einem Artikel zu einem Etikettendrucklauf hinzu

| Datatype |       Name      | Description                   | Required |
| -------- | :-------------: | ----------------------------- | -------- |
| *string* | batchIdentifier | ID des Etikettendrucklaufs    | Yes      |
| *number* |    articleId    | ID des zu druckenden Artikels | Yes      |

***addLabelToPrintBatch***

Fügt Informationen zum Druck Etiketten zu einem Artikel zu einem Etikettendrucklauf hinzu

| Datatype |       Name      | Description                        | Required |
| -------- | :-------------: | ---------------------------------- | -------- |
| *string* | batchIdentifier | ID des Etikettendrucklaufs         | Yes      |
| *number* |    articleId    | ID des zu druckenden Artikels      | Yes      |
| *number* |    labelCount   | Anzahl der zu druckenden Etiketten | Yes      |

***create***

Persistiert einen Artikel. Die Texte werden zur Sprache {@code languageCode} gespeichert

*Return type:* [Article](https://developer.vario-software.de/scripting-reference/types#Article)

| Datatype                                                                         |     Name     | Description                   | Required |
| -------------------------------------------------------------------------------- | :----------: | ----------------------------- | -------- |
| [Article](https://developer.vario-software.de/scripting-reference/types#Article) |   toCreate   | Der zu persistierende Artikel | Yes      |
| *string*                                                                         | languageCode |                               | Yes      |

***create***

Persistiert einen Artikel. Die Texte werden zur Sprache der eigenen Adresse gespeichert

*Return type:* [Article](https://developer.vario-software.de/scripting-reference/types#Article)

| Datatype                                                                         |   Name   | Description                   | Required |
| -------------------------------------------------------------------------------- | :------: | ----------------------------- | -------- |
| [Article](https://developer.vario-software.de/scripting-reference/types#Article) | toCreate | Der zu persistierende Artikel | Yes      |

***deactivate***

Deaktiviert ein DTO

*Return type:* [Article](https://developer.vario-software.de/scripting-reference/types#Article)

| Datatype |      Name      | Description                   | Required |
| -------- | :------------: | ----------------------------- | -------- |
| *number* | idToDeactivate | ID vom zu deaktivierenden DTO | Yes      |

***deleteById***

Löscht einen Artikel

| Datatype |    Name   | Description                   | Required |
| -------- | :-------: | ----------------------------- | -------- |
| *number* | articleId | ID des zu löschenden Artikels | Yes      |

***deleteListingById***

Löscht ein Listing zu einem Artikel

| Datatype |    Name   | Description                                              | Required |
| -------- | :-------: | -------------------------------------------------------- | -------- |
| *number* | articleId | ID des Artikels, zu dem ein Listing gelöscht werden soll | Yes      |
| *number* | listingId | ID des Listings, welches gelöscht werden soll            | Yes      |

***executeLabelPrintBatch***

Führt einen Etikettendrucklauf aus

| Datatype |       Name      | Description                | Required |
| -------- | :-------------: | -------------------------- | -------- |
| *string* | batchIdentifier | ID des Etikettendrucklaufs | Yes      |

***executeLabelPrintBatch***

Führt einen Etikettendrucklauf aus

| Datatype |          Name         | Description                        | Required |
| -------- | :-------------------: | ---------------------------------- | -------- |
| *string* |    batchIdentifier    | ID des Etikettendrucklaufs         | Yes      |
| *string* | reportGroupIdentifier | Name einer Etiketten-Report-Gruppe | No       |

***getArticlePurchaseDiscounts***

Liefert die Einkaufsrabatte zu einem Artikel

*Return type:* Array<[ProductPrice](https://developer.vario-software.de/scripting-reference/types#ProductPrice)>

| Datatype |    Name   | Description       | Required |
| -------- | :-------: | ----------------- | -------- |
| *number* | articleId | ID eines Artikels | Yes      |

***getArticlePurchasePrices***

Liefert die Einkaufspreise zu einem Artikel

*Return type:* Array<[ProductPrice](https://developer.vario-software.de/scripting-reference/types#ProductPrice)>

| Datatype |    Name   | Description       | Required |
| -------- | :-------: | ----------------- | -------- |
| *number* | articleId | ID eines Artikels | Yes      |

***getArticleSalesDiscounts***

Liefert die Verkaufsrabatte zu einem Artikel

*Return type:* Array<[ProductPrice](https://developer.vario-software.de/scripting-reference/types#ProductPrice)>

| Datatype |    Name   | Description       | Required |
| -------- | :-------: | ----------------- | -------- |
| *number* | articleId | ID eines Artikels | Yes      |

***getArticleSalesPrices***

Liefert die Verkaufspreise zu einem Artikel

*Return type:* Array<[ProductPrice](https://developer.vario-software.de/scripting-reference/types#ProductPrice)>

| Datatype |    Name   | Description       | Required |
| -------- | :-------: | ----------------- | -------- |
| *number* | articleId | ID eines Artikels | Yes      |

***getNewDto***

Erstellt eine neue Article-Instanz

*Return type:* [Article](https://developer.vario-software.de/scripting-reference/types#Article)

***newLabelPrintBatchIdentifier***

Generiert die ID für einen neuen Etikettendrucklauf

*Return type:* *string*

***readById***

Liest einen Artikel mit Texten zur Sprache der eigenen Adresse

*Return type:* [Article](https://developer.vario-software.de/scripting-reference/types#Article)

| Datatype | Name | Description                | Required |
| -------- | :--: | -------------------------- | -------- |
| *number* |  id  | ID vom zu lesenden Artikel | Yes      |

***readById***

Liest einen Artikel mit Texten zur Sprache languageCode

*Return type:* [Article](https://developer.vario-software.de/scripting-reference/types#Article)

| Datatype |     Name     | Description                | Required |
| -------- | :----------: | -------------------------- | -------- |
| *number* |      id      | ID vom zu lesenden Artikel | Yes      |
| *string* | languageCode | Zu verwendende Sprache     | Yes      |

***readByNumber***

Liest einen Artikel über die Artikelnummer mit Texten zur Sprache der eigenen Adresse

*Return type:* [Article](https://developer.vario-software.de/scripting-reference/types#Article)

| Datatype |      Name     | Description        | Required |
| -------- | :-----------: | ------------------ | -------- |
| *string* | articleNumber | Eine Artikelnummer | Yes      |

***readByNumber***

Liest einen Artikel über die Artikelnummer mit Texten zur Sprache {@code languageCode}

*Return type:* [Article](https://developer.vario-software.de/scripting-reference/types#Article)

| Datatype |      Name     | Description            | Required |
| -------- | :-----------: | ---------------------- | -------- |
| *string* | articleNumber | Eine Artikelnummer     | Yes      |
| *string* |  languageCode | Zu verwendende Sprache | Yes      |

***store***

Persistiert einen Artikel. Die Texte werden zur Sprache {@code languageCode} gespeichert

*Return type:* [Article](https://developer.vario-software.de/scripting-reference/types#Article)

| Datatype                                                                         |     Name     | Description                   | Required |
| -------------------------------------------------------------------------------- | :----------: | ----------------------------- | -------- |
| [Article](https://developer.vario-software.de/scripting-reference/types#Article) |    toStore   | Der zu persistierende Artikel | Yes      |
| *string*                                                                         | languageCode |                               | Yes      |

***store***

Persistiert einen Artikel. Die Texte werden zur Sprache der eigenen Adresse gespeichert

*Return type:* [Article](https://developer.vario-software.de/scripting-reference/types#Article)

| Datatype                                                                         |   Name  | Description                   | Required |
| -------------------------------------------------------------------------------- | :-----: | ----------------------------- | -------- |
| [Article](https://developer.vario-software.de/scripting-reference/types#Article) | toStore | Der zu persistierende Artikel | Yes      |

***update***

Persistiert einen Artikel. Die Texte werden zur Sprache {@code languageCode} gespeichert

*Return type:* [Article](https://developer.vario-software.de/scripting-reference/types#Article)

| Datatype                                                                         |   Name   | Description                   | Required |
| -------------------------------------------------------------------------------- | :------: | ----------------------------- | -------- |
| [Article](https://developer.vario-software.de/scripting-reference/types#Article) | toUpdate | Der zu persistierende Artikel | Yes      |

***update***

Aktualisiert einen Artikel. Die Texte werden zur Sprache {@code languageCode} gespeichert

*Return type:* [Article](https://developer.vario-software.de/scripting-reference/types#Article)

| Datatype                                                                         |     Name     | Description                   | Required |
| -------------------------------------------------------------------------------- | :----------: | ----------------------------- | -------- |
| [Article](https://developer.vario-software.de/scripting-reference/types#Article) |   toUpdate   | Der zu persistierende Artikel | Yes      |
| *string*                                                                         | languageCode |                               | Yes      |

## ArticleSupplierScriptingService

### Description

Service zur Verarbeitung von Artikel-Lieferantenbeziehungen im Skripten

### Methods

***activate***

Aktiviert ein DTO

*Return type:* [ArticleSupplier](https://developer.vario-software.de/scripting-reference/types#ArticleSupplier)

| Datatype |     Name     | Description                 | Required |
| -------- | :----------: | --------------------------- | -------- |
| *number* | idToActivate | ID vom zu aktivierenden DTO | Yes      |

***create***

Persistiert ein DTO

*Return type:* [ArticleSupplier](https://developer.vario-software.de/scripting-reference/types#ArticleSupplier)

| Datatype                                                                                         |   Name   | Description               | Required |
| ------------------------------------------------------------------------------------------------ | :------: | ------------------------- | -------- |
| [ArticleSupplier](https://developer.vario-software.de/scripting-reference/types#ArticleSupplier) | toCreate | Das zu persistierende DTO | Yes      |

***deactivate***

Deaktiviert ein DTO

*Return type:* [ArticleSupplier](https://developer.vario-software.de/scripting-reference/types#ArticleSupplier)

| Datatype |      Name      | Description                   | Required |
| -------- | :------------: | ----------------------------- | -------- |
| *number* | idToDeactivate | ID vom zu deaktivierenden DTO | Yes      |

***deleteById***

Löscht eine Entity

| Datatype | Name | Description                 | Required |
| -------- | :--: | --------------------------- | -------- |
| *number* |  id  | ID der zu löschenden Entity | Yes      |

***getNewDto***

Erstellt eine neue DTO-Instanz

*Return type:* [ArticleSupplier](https://developer.vario-software.de/scripting-reference/types#ArticleSupplier)

***readAllById***

Liest eine Liste von DTOs

*Return type:* Array<[ArticleSupplier](https://developer.vario-software.de/scripting-reference/types#ArticleSupplier)>

| Datatype | Name | Description                  | Required |
| -------- | :--: | ---------------------------- | -------- |
| *Array*  |  ids | Die Liste der gelesenen DTOs | Yes      |

***readById***

Liest ein DTO

*Return type:* [ArticleSupplier](https://developer.vario-software.de/scripting-reference/types#ArticleSupplier)

| Datatype | Name | Description            | Required |
| -------- | :--: | ---------------------- | -------- |
| *number* |  id  | ID vom zu lesenden DTO | Yes      |

***store***

Persistiert eine DTO

*Return type:* [ArticleSupplier](https://developer.vario-software.de/scripting-reference/types#ArticleSupplier)

| Datatype                                                                                         |   Name  | Description               | Required |
| ------------------------------------------------------------------------------------------------ | :-----: | ------------------------- | -------- |
| [ArticleSupplier](https://developer.vario-software.de/scripting-reference/types#ArticleSupplier) | toStore | Das zu persistierende DTO | Yes      |

***update***

Aktualisiert ein persistiertes DTO

*Return type:* [ArticleSupplier](https://developer.vario-software.de/scripting-reference/types#ArticleSupplier)

| Datatype                                                                                         |   Name   | Description                   | Required |
| ------------------------------------------------------------------------------------------------ | :------: | ----------------------------- | -------- |
| [ArticleSupplier](https://developer.vario-software.de/scripting-reference/types#ArticleSupplier) | toUpdate | Die zu aktualisierende Entity | Yes      |

## CrmActivityScriptingService

### Description

Service zur Verarbeitung von CRM-Aktivitäten

### Methods

***create***

Persistiert ein DTO

*Return type:* [CrmActivity](https://developer.vario-software.de/scripting-reference/types#CrmActivity)

| Datatype                                                                                 |   Name   | Description               | Required |
| ---------------------------------------------------------------------------------------- | :------: | ------------------------- | -------- |
| [CrmActivity](https://developer.vario-software.de/scripting-reference/types#CrmActivity) | toCreate | Das zu persistierende DTO | Yes      |

***createCrmObjectRef***

Erstellte eine neue Instanz von CrmObjectRef

*Return type:* [CrmObjectRef](https://developer.vario-software.de/scripting-reference/types#CrmObjectRef)

***deleteById***

Löscht eine Entity

| Datatype | Name | Description                 | Required |
| -------- | :--: | --------------------------- | -------- |
| *number* |  id  | ID der zu löschenden Entity | Yes      |

***findTypeById***

Findet eine Aktivitätsart über ihre ID

*Return type:* [CrmActivityType](https://developer.vario-software.de/scripting-reference/types#CrmActivityType)

| Datatype |  Name  | Description            | Required |
| -------- | :----: | ---------------------- | -------- |
| *number* | typeId | ID einer Aktivitätsart | Yes      |

***findTypeByLabel***

Findet eine Aktivitätsart über ihr Label

*Return type:* [CrmActivityType](https://developer.vario-software.de/scripting-reference/types#CrmActivityType)

| Datatype |    Name   | Description               | Required |
| -------- | :-------: | ------------------------- | -------- |
| *string* | typeLabel | Label einer Aktivitätsart | Yes      |

***getNewDto***

Erstellt eine neue DTO-Instanz

*Return type:* [CrmActivity](https://developer.vario-software.de/scripting-reference/types#CrmActivity)

***readAllById***

Liest eine Liste von DTOs

*Return type:* Array<[CrmActivity](https://developer.vario-software.de/scripting-reference/types#CrmActivity)>

| Datatype | Name | Description                  | Required |
| -------- | :--: | ---------------------------- | -------- |
| *Array*  |  ids | Die Liste der gelesenen DTOs | Yes      |

***readById***

Liest ein DTO

*Return type:* [CrmActivity](https://developer.vario-software.de/scripting-reference/types#CrmActivity)

| Datatype | Name | Description            | Required |
| -------- | :--: | ---------------------- | -------- |
| *number* |  id  | ID vom zu lesenden DTO | Yes      |

***store***

Persistiert eine DTO

*Return type:* [CrmActivity](https://developer.vario-software.de/scripting-reference/types#CrmActivity)

| Datatype                                                                                 |   Name  | Description               | Required |
| ---------------------------------------------------------------------------------------- | :-----: | ------------------------- | -------- |
| [CrmActivity](https://developer.vario-software.de/scripting-reference/types#CrmActivity) | toStore | Das zu persistierende DTO | Yes      |

***update***

Aktualisiert ein persistiertes DTO

*Return type:* [CrmActivity](https://developer.vario-software.de/scripting-reference/types#CrmActivity)

| Datatype                                                                                 |   Name   | Description                   | Required |
| ---------------------------------------------------------------------------------------- | :------: | ----------------------------- | -------- |
| [CrmActivity](https://developer.vario-software.de/scripting-reference/types#CrmActivity) | toUpdate | Die zu aktualisierende Entity | Yes      |

## CrmDealScriptingService

### Description

Service zur Verarbeitung von Deals

### Methods

***create***

Persistiert ein DTO

*Return type:* [CrmDeal](https://developer.vario-software.de/scripting-reference/types#CrmDeal)

| Datatype                                                                         |   Name   | Description               | Required |
| -------------------------------------------------------------------------------- | :------: | ------------------------- | -------- |
| [CrmDeal](https://developer.vario-software.de/scripting-reference/types#CrmDeal) | toCreate | Das zu persistierende DTO | Yes      |

***createCrmObjectRef***

Erstellte eine neue Instanz von CrmObjectRef

*Return type:* [CrmObjectRef](https://developer.vario-software.de/scripting-reference/types#CrmObjectRef)

***createNewDtoByTemplate***

Erstellt ein DTO über eine Vorlage

*Return type:* [CrmDeal](https://developer.vario-software.de/scripting-reference/types#CrmDeal)

| Datatype |     Name     | Description        | Required |
| -------- | :----------: | ------------------ | -------- |
| *string* | templateName | Name einer Vorlage | Yes      |

***createNewDtoByTemplateId***

Erstellt ein DTO über eine Vorlage

*Return type:* [CrmDeal](https://developer.vario-software.de/scripting-reference/types#CrmDeal)

| Datatype |    Name    | Description      | Required |
| -------- | :--------: | ---------------- | -------- |
| *number* | templateId | ID einer Vorlage | Yes      |

***dealWon***

Gewinnt einen Deal ab. Der Deal wird positiv abgeschlossen

*Return type:* [CrmDeal](https://developer.vario-software.de/scripting-reference/types#CrmDeal)

| Datatype |           Name          | Description                             | Required |
| -------- | :---------------------: | --------------------------------------- | -------- |
| *number* |          dealId         | ID eines Deals                          | Yes      |
| *number* | positiveClosingReasonId | ID eines positiven Deal-Abschlussgrunds | Yes      |

***deleteById***

Löscht eine Entity

| Datatype | Name | Description                 | Required |
| -------- | :--: | --------------------------- | -------- |
| *number* |  id  | ID der zu löschenden Entity | Yes      |

***findFinalState***

Findet den End-Status

*Return type:* [CrmState](https://developer.vario-software.de/scripting-reference/types#CrmState)

***findPriorityById***

Findet eine CRM-Priorität über die ID

*Return type:* [CrmPriority](https://developer.vario-software.de/scripting-reference/types#CrmPriority)

| Datatype |    Name    | Description                | Required |
| -------- | :--------: | -------------------------- | -------- |
| *number* | priorityId | ID der gesuchten Priorität | Yes      |

***findPriorityByLabel***

Findet eine CRM-Priorität über ihr Label

*Return type:* [CrmPriority](https://developer.vario-software.de/scripting-reference/types#CrmPriority)

| Datatype |      Name     | Description                   | Required |
| -------- | :-----------: | ----------------------------- | -------- |
| *string* | priorityLabel | Label der gesuchten Priorität | Yes      |

***findPriorityByType***

Findet eine CRM-Priorität über den Priorität-Typ

*Return type:* [CrmPriority](https://developer.vario-software.de/scripting-reference/types#CrmPriority)

| Datatype                                                                                           |     Name     | Description                 | Required |
| -------------------------------------------------------------------------------------------------- | :----------: | --------------------------- | -------- |
| [ECrmPriorityType](https://developer.vario-software.de/scripting-reference/types#ECrmPriorityType) | priorityType | Typ der gesuchten Priorität | Yes      |

***findStartState***

Findet den Start-Status

*Return type:* [CrmState](https://developer.vario-software.de/scripting-reference/types#CrmState)

***findStateById***

Findet einen CRM-Status über die ID

*Return type:* [CrmState](https://developer.vario-software.de/scripting-reference/types#CrmState)

| Datatype |   Name  | Description             | Required |
| -------- | :-----: | ----------------------- | -------- |
| *number* | stateId | ID vom gesuchten Status | Yes      |

***findStateByLabel***

Findet einen CRM-Status über sein Label

*Return type:* [CrmState](https://developer.vario-software.de/scripting-reference/types#CrmState)

| Datatype |    Name    | Description                | Required |
| -------- | :--------: | -------------------------- | -------- |
| *string* | stateLabel | Label vom gesuchten Status | Yes      |

***findTopicById***

Findet ein Deal-Thema über seine ID

*Return type:* [CrmDealTopic](https://developer.vario-software.de/scripting-reference/types#CrmDealTopic)

| Datatype |   Name  | Description                  | Required |
| -------- | :-----: | ---------------------------- | -------- |
| *number* | topicId | ID des gesuchten Deal-Themas | Yes      |

***findTopicByLabel***

Findet ein Deal-Thema über sein Label

*Return type:* [CrmDealTopic](https://developer.vario-software.de/scripting-reference/types#CrmDealTopic)

| Datatype |  Name | Description                     | Required |
| -------- | :---: | ------------------------------- | -------- |
| *string* | label | Label des gesuchten Deal-Themas | Yes      |

***findTypeById***

Findet einen CRM-Typ über die ID

*Return type:* [CrmSubType](https://developer.vario-software.de/scripting-reference/types#CrmSubType)

| Datatype |  Name  | Description          | Required |
| -------- | :----: | -------------------- | -------- |
| *number* | typeId | ID vom gesuchten Typ | Yes      |

***findTypeByLabel***

Findet einen CRM-Typ über sein Label

*Return type:* [CrmSubType](https://developer.vario-software.de/scripting-reference/types#CrmSubType)

| Datatype |    Name   | Description             | Required |
| -------- | :-------: | ----------------------- | -------- |
| *string* | typeLabel | Label vom gesuchten Typ | Yes      |

***getNewDto***

Erstellt eine neue DTO-Instanz

*Return type:* [CrmDeal](https://developer.vario-software.de/scripting-reference/types#CrmDeal)

***readAllById***

Liest eine Liste von DTOs

*Return type:* Array<[CrmDeal](https://developer.vario-software.de/scripting-reference/types#CrmDeal)>

| Datatype | Name | Description                  | Required |
| -------- | :--: | ---------------------------- | -------- |
| *Array*  |  ids | Die Liste der gelesenen DTOs | Yes      |

***readById***

Liest ein DTO

*Return type:* [CrmDeal](https://developer.vario-software.de/scripting-reference/types#CrmDeal)

| Datatype | Name | Description            | Required |
| -------- | :--: | ---------------------- | -------- |
| *number* |  id  | ID vom zu lesenden DTO | Yes      |

***sendNotification***

erzeugt eine Ausgabe mit dem Benachrichtgungs-Modul für Deals

| Datatype                                                                                                                 |      Name     | Description                 | Required |
| ------------------------------------------------------------------------------------------------------------------------ | :-----------: | --------------------------- | -------- |
| *number*                                                                                                                 |     dealId    | ID eines Deals              | Yes      |
| [ScriptOutputRequest](https://developer.vario-software.de/scripting-reference/types#ScriptOutputRequest)                 | outputRequest | der Output Request          | Yes      |
| [DealNotificationEventConfig](https://developer.vario-software.de/scripting-reference/types#DealNotificationEventConfig) |  eventConfig  | Reason für die Notification | Yes      |

***store***

Persistiert eine DTO

*Return type:* [CrmDeal](https://developer.vario-software.de/scripting-reference/types#CrmDeal)

| Datatype                                                                         |   Name  | Description               | Required |
| -------------------------------------------------------------------------------- | :-----: | ------------------------- | -------- |
| [CrmDeal](https://developer.vario-software.de/scripting-reference/types#CrmDeal) | toStore | Das zu persistierende DTO | Yes      |

***update***

Aktualisiert ein persistiertes DTO

*Return type:* [CrmDeal](https://developer.vario-software.de/scripting-reference/types#CrmDeal)

| Datatype                                                                         |   Name   | Description                   | Required |
| -------------------------------------------------------------------------------- | :------: | ----------------------------- | -------- |
| [CrmDeal](https://developer.vario-software.de/scripting-reference/types#CrmDeal) | toUpdate | Die zu aktualisierende Entity | Yes      |

## CrmDocumentRefScriptingService

### Description

Verwaltung von CRM-Belegreferenzen

### Methods

***addDocumentRef***

Erstellt eine CRM-Belegreferenz mit Referenztyp gleich NONE

| Datatype                                                                           |    Name    | Description           | Required |
| ---------------------------------------------------------------------------------- | :--------: | --------------------- | -------- |
| *number*                                                                           |    crmId   | ID eines CRM-Objekts  | Yes      |
| [ECrmType](https://developer.vario-software.de/scripting-reference/types#ECrmType) |   crmType  | Typ eines CRM-Objekts | Yes      |
| *number*                                                                           | documentId | ID eines Belegs       | Yes      |

***addDocumentRef***

Erstellt eine CRM-Belegreferenz

| Datatype                                                                                                               |      Name      | Description           | Required |
| ---------------------------------------------------------------------------------------------------------------------- | :------------: | --------------------- | -------- |
| *number*                                                                                                               |      crmId     | ID eines CRM-Objekts  | Yes      |
| [ECrmType](https://developer.vario-software.de/scripting-reference/types#ECrmType)                                     |     crmType    | Typ eines CRM-Objekts | Yes      |
| *number*                                                                                                               |   documentId   | ID eines Belegs       | Yes      |
| [ECrmSpecialDocumentRefType](https://developer.vario-software.de/scripting-reference/types#ECrmSpecialDocumentRefType) | specialRefType | Referenztyp           | Yes      |

***readAllByDocumentId***

Liefert CRM-Belegreferenzen zu einem Beleg

*Return type:* [CrmTypedDocumentRefList](https://developer.vario-software.de/scripting-reference/types#CrmTypedDocumentRefList)

| Datatype |    Name    | Description     | Required |
| -------- | :--------: | --------------- | -------- |
| *number* | documentId | ID eines Belegs | Yes      |

## CrmProjectScriptingService

### Description

Service zur Verarbeitung von Projekten

### Methods

***create***

Persistiert ein DTO

*Return type:* [CrmProject](https://developer.vario-software.de/scripting-reference/types#CrmProject)

| Datatype                                                                               |   Name   | Description               | Required |
| -------------------------------------------------------------------------------------- | :------: | ------------------------- | -------- |
| [CrmProject](https://developer.vario-software.de/scripting-reference/types#CrmProject) | toCreate | Das zu persistierende DTO | Yes      |

***createCrmObjectRef***

Erstellte eine neue Instanz von CrmObjectRef

*Return type:* [CrmObjectRef](https://developer.vario-software.de/scripting-reference/types#CrmObjectRef)

***createNewDtoByTemplate***

Erstellt ein DTO über eine Vorlage

*Return type:* [CrmProject](https://developer.vario-software.de/scripting-reference/types#CrmProject)

| Datatype |     Name     | Description        | Required |
| -------- | :----------: | ------------------ | -------- |
| *string* | templateName | Name einer Vorlage | Yes      |

***createNewDtoByTemplateId***

Erstellt ein DTO über eine Vorlage

*Return type:* [CrmProject](https://developer.vario-software.de/scripting-reference/types#CrmProject)

| Datatype |    Name    | Description      | Required |
| -------- | :--------: | ---------------- | -------- |
| *number* | templateId | ID einer Vorlage | Yes      |

***deleteById***

Löscht eine Entity

| Datatype | Name | Description                 | Required |
| -------- | :--: | --------------------------- | -------- |
| *number* |  id  | ID der zu löschenden Entity | Yes      |

***findFinalState***

Findet den End-Status

*Return type:* [CrmState](https://developer.vario-software.de/scripting-reference/types#CrmState)

***findPriorityById***

Findet eine CRM-Priorität über die ID

*Return type:* [CrmPriority](https://developer.vario-software.de/scripting-reference/types#CrmPriority)

| Datatype |    Name    | Description                | Required |
| -------- | :--------: | -------------------------- | -------- |
| *number* | priorityId | ID der gesuchten Priorität | Yes      |

***findPriorityByLabel***

Findet eine CRM-Priorität über ihr Label

*Return type:* [CrmPriority](https://developer.vario-software.de/scripting-reference/types#CrmPriority)

| Datatype |      Name     | Description                   | Required |
| -------- | :-----------: | ----------------------------- | -------- |
| *string* | priorityLabel | Label der gesuchten Priorität | Yes      |

***findPriorityByType***

Findet eine CRM-Priorität über den Priorität-Typ

*Return type:* [CrmPriority](https://developer.vario-software.de/scripting-reference/types#CrmPriority)

| Datatype                                                                                           |     Name     | Description                 | Required |
| -------------------------------------------------------------------------------------------------- | :----------: | --------------------------- | -------- |
| [ECrmPriorityType](https://developer.vario-software.de/scripting-reference/types#ECrmPriorityType) | priorityType | Typ der gesuchten Priorität | Yes      |

***findStartState***

Findet den Start-Status

*Return type:* [CrmState](https://developer.vario-software.de/scripting-reference/types#CrmState)

***findStateById***

Findet einen CRM-Status über die ID

*Return type:* [CrmState](https://developer.vario-software.de/scripting-reference/types#CrmState)

| Datatype |   Name  | Description             | Required |
| -------- | :-----: | ----------------------- | -------- |
| *number* | stateId | ID vom gesuchten Status | Yes      |

***findStateByLabel***

Findet einen CRM-Status über sein Label

*Return type:* [CrmState](https://developer.vario-software.de/scripting-reference/types#CrmState)

| Datatype |    Name    | Description                | Required |
| -------- | :--------: | -------------------------- | -------- |
| *string* | stateLabel | Label vom gesuchten Status | Yes      |

***findTypeById***

Findet einen CRM-Typ über die ID

*Return type:* [CrmSubType](https://developer.vario-software.de/scripting-reference/types#CrmSubType)

| Datatype |  Name  | Description          | Required |
| -------- | :----: | -------------------- | -------- |
| *number* | typeId | ID vom gesuchten Typ | Yes      |

***findTypeByLabel***

Findet einen CRM-Typ über sein Label

*Return type:* [CrmSubType](https://developer.vario-software.de/scripting-reference/types#CrmSubType)

| Datatype |    Name   | Description             | Required |
| -------- | :-------: | ----------------------- | -------- |
| *string* | typeLabel | Label vom gesuchten Typ | Yes      |

***getNewDto***

Erstellt eine neue DTO-Instanz

*Return type:* [CrmProject](https://developer.vario-software.de/scripting-reference/types#CrmProject)

***readAllById***

Liest eine Liste von DTOs

*Return type:* Array<[CrmProject](https://developer.vario-software.de/scripting-reference/types#CrmProject)>

| Datatype | Name | Description                  | Required |
| -------- | :--: | ---------------------------- | -------- |
| *Array*  |  ids | Die Liste der gelesenen DTOs | Yes      |

***readById***

Liest ein DTO

*Return type:* [CrmProject](https://developer.vario-software.de/scripting-reference/types#CrmProject)

| Datatype | Name | Description            | Required |
| -------- | :--: | ---------------------- | -------- |
| *number* |  id  | ID vom zu lesenden DTO | Yes      |

***store***

Persistiert eine DTO

*Return type:* [CrmProject](https://developer.vario-software.de/scripting-reference/types#CrmProject)

| Datatype                                                                               |   Name  | Description               | Required |
| -------------------------------------------------------------------------------------- | :-----: | ------------------------- | -------- |
| [CrmProject](https://developer.vario-software.de/scripting-reference/types#CrmProject) | toStore | Das zu persistierende DTO | Yes      |

***update***

Aktualisiert ein persistiertes DTO

*Return type:* [CrmProject](https://developer.vario-software.de/scripting-reference/types#CrmProject)

| Datatype                                                                               |   Name   | Description                   | Required |
| -------------------------------------------------------------------------------------- | :------: | ----------------------------- | -------- |
| [CrmProject](https://developer.vario-software.de/scripting-reference/types#CrmProject) | toUpdate | Die zu aktualisierende Entity | Yes      |

## CrmTaskScriptingService

### Description

Service zur Verarbeitung von CRM-Aufgaben

### Methods

***calculateServiceTime***

Berechnet die gesamte Dienstleistungsdauer in Sekunden in den gegebenen Belegen

*Return type:* *number*

| Datatype                                                                                                               |       Name      | Description                   | Required |
| ---------------------------------------------------------------------------------------------------------------------- | :-------------: | ----------------------------- | -------- |
| Array<[CrmTypedDocumentRef](https://developer.vario-software.de/scripting-reference/types#CrmTypedDocumentRef)>        |   documentRefs  | Zu beachtende Referenzen      | Yes      |
| [ECrmSpecialDocumentRefType](https://developer.vario-software.de/scripting-reference/types#ECrmSpecialDocumentRefType) | documentRefType | Der zu beachtende Referenztyp | Yes      |

***create***

Persistiert ein DTO

*Return type:* [CrmTask](https://developer.vario-software.de/scripting-reference/types#CrmTask)

| Datatype                                                                         |   Name   | Description               | Required |
| -------------------------------------------------------------------------------- | :------: | ------------------------- | -------- |
| [CrmTask](https://developer.vario-software.de/scripting-reference/types#CrmTask) | toCreate | Das zu persistierende DTO | Yes      |

***createCrmObjectRef***

Erstellte eine neue Instanz von CrmObjectRef

*Return type:* [CrmObjectRef](https://developer.vario-software.de/scripting-reference/types#CrmObjectRef)

***createNewDtoByTemplate***

Erstellt ein DTO über eine Vorlage

*Return type:* [CrmTask](https://developer.vario-software.de/scripting-reference/types#CrmTask)

| Datatype |     Name     | Description        | Required |
| -------- | :----------: | ------------------ | -------- |
| *string* | templateName | Name einer Vorlage | Yes      |

***createNewDtoByTemplateId***

Erstellt ein DTO über eine Vorlage

*Return type:* [CrmTask](https://developer.vario-software.de/scripting-reference/types#CrmTask)

| Datatype |    Name    | Description      | Required |
| -------- | :--------: | ---------------- | -------- |
| *number* | templateId | ID einer Vorlage | Yes      |

***deleteById***

Löscht eine Entity

| Datatype | Name | Description                 | Required |
| -------- | :--: | --------------------------- | -------- |
| *number* |  id  | ID der zu löschenden Entity | Yes      |

***findFinalState***

Findet den End-Status

*Return type:* [CrmState](https://developer.vario-software.de/scripting-reference/types#CrmState)

***findPriorityById***

Findet eine CRM-Priorität über die ID

*Return type:* [CrmPriority](https://developer.vario-software.de/scripting-reference/types#CrmPriority)

| Datatype |    Name    | Description                | Required |
| -------- | :--------: | -------------------------- | -------- |
| *number* | priorityId | ID der gesuchten Priorität | Yes      |

***findPriorityByLabel***

Findet eine CRM-Priorität über ihr Label

*Return type:* [CrmPriority](https://developer.vario-software.de/scripting-reference/types#CrmPriority)

| Datatype |      Name     | Description                   | Required |
| -------- | :-----------: | ----------------------------- | -------- |
| *string* | priorityLabel | Label der gesuchten Priorität | Yes      |

***findPriorityByType***

Findet eine CRM-Priorität über den Priorität-Typ

*Return type:* [CrmPriority](https://developer.vario-software.de/scripting-reference/types#CrmPriority)

| Datatype                                                                                           |     Name     | Description                 | Required |
| -------------------------------------------------------------------------------------------------- | :----------: | --------------------------- | -------- |
| [ECrmPriorityType](https://developer.vario-software.de/scripting-reference/types#ECrmPriorityType) | priorityType | Typ der gesuchten Priorität | Yes      |

***findReadyToBillState***

Sucht den "Bereit zur Abrechnung"-Status

*Return type:* [CrmState](https://developer.vario-software.de/scripting-reference/types#CrmState)

***findStartState***

Findet den Start-Status

*Return type:* [CrmState](https://developer.vario-software.de/scripting-reference/types#CrmState)

***findStateById***

Findet einen CRM-Status über die ID

*Return type:* [CrmState](https://developer.vario-software.de/scripting-reference/types#CrmState)

| Datatype |   Name  | Description             | Required |
| -------- | :-----: | ----------------------- | -------- |
| *number* | stateId | ID vom gesuchten Status | Yes      |

***findStateByLabel***

Findet einen CRM-Status über sein Label

*Return type:* [CrmState](https://developer.vario-software.de/scripting-reference/types#CrmState)

| Datatype |    Name    | Description                | Required |
| -------- | :--------: | -------------------------- | -------- |
| *string* | stateLabel | Label vom gesuchten Status | Yes      |

***findTypeById***

Findet einen CRM-Typ über die ID

*Return type:* [CrmSubType](https://developer.vario-software.de/scripting-reference/types#CrmSubType)

| Datatype |  Name  | Description          | Required |
| -------- | :----: | -------------------- | -------- |
| *number* | typeId | ID vom gesuchten Typ | Yes      |

***findTypeByLabel***

Findet einen CRM-Typ über sein Label

*Return type:* [CrmSubType](https://developer.vario-software.de/scripting-reference/types#CrmSubType)

| Datatype |    Name   | Description             | Required |
| -------- | :-------: | ----------------------- | -------- |
| *string* | typeLabel | Label vom gesuchten Typ | Yes      |

***getNewDto***

Erstellt eine neue DTO-Instanz

*Return type:* [CrmTask](https://developer.vario-software.de/scripting-reference/types#CrmTask)

***readAllById***

Liest eine Liste von DTOs

*Return type:* Array<[CrmTask](https://developer.vario-software.de/scripting-reference/types#CrmTask)>

| Datatype | Name | Description                  | Required |
| -------- | :--: | ---------------------------- | -------- |
| *Array*  |  ids | Die Liste der gelesenen DTOs | Yes      |

***readById***

Liest ein DTO

*Return type:* [CrmTask](https://developer.vario-software.de/scripting-reference/types#CrmTask)

| Datatype | Name | Description            | Required |
| -------- | :--: | ---------------------- | -------- |
| *number* |  id  | ID vom zu lesenden DTO | Yes      |

***store***

Persistiert eine DTO

*Return type:* [CrmTask](https://developer.vario-software.de/scripting-reference/types#CrmTask)

| Datatype                                                                         |   Name  | Description               | Required |
| -------------------------------------------------------------------------------- | :-----: | ------------------------- | -------- |
| [CrmTask](https://developer.vario-software.de/scripting-reference/types#CrmTask) | toStore | Das zu persistierende DTO | Yes      |

***update***

Aktualisiert ein persistiertes DTO

*Return type:* [CrmTask](https://developer.vario-software.de/scripting-reference/types#CrmTask)

| Datatype                                                                         |   Name   | Description                   | Required |
| -------------------------------------------------------------------------------- | :------: | ----------------------------- | -------- |
| [CrmTask](https://developer.vario-software.de/scripting-reference/types#CrmTask) | toUpdate | Die zu aktualisierende Entity | Yes      |

## DeliveryMethodScriptingService

### Description

Verwaltung von Versandarten

### Methods

***findByLabel***

Findet eine Versandart über ein Label

*Return type:* [DeliveryMethod](https://developer.vario-software.de/scripting-reference/types#DeliveryMethod)

| Datatype |  Name | Description            | Required |
| -------- | :---: | ---------------------- | -------- |
| *string* | label | Label einer Versandart | Yes      |

***readAllById***

Liest eine Liste von DTOs

*Return type:* Array<[DeliveryMethod](https://developer.vario-software.de/scripting-reference/types#DeliveryMethod)>

| Datatype | Name | Description                  | Required |
| -------- | :--: | ---------------------------- | -------- |
| *Array*  |  ids | Die Liste der gelesenen DTOs | Yes      |

***readById***

Liest ein DTO

*Return type:* [DeliveryMethod](https://developer.vario-software.de/scripting-reference/types#DeliveryMethod)

| Datatype | Name | Description            | Required |
| -------- | :--: | ---------------------- | -------- |
| *number* |  id  | ID vom zu lesenden DTO | Yes      |

## DeliveryTermScriptingService

### Description

Verwaltung von Lieferbedingungen

### Methods

***findByLabel***

Findet eine Lieferbedingung über ein Label

*Return type:* [DeliveryTerm](https://developer.vario-software.de/scripting-reference/types#DeliveryTerm)

| Datatype |  Name | Description                 | Required |
| -------- | :---: | --------------------------- | -------- |
| *string* | label | Label einer Lieferbedingung | Yes      |

***readAllById***

Liest eine Liste von DTOs

*Return type:* Array<[DeliveryTerm](https://developer.vario-software.de/scripting-reference/types#DeliveryTerm)>

| Datatype | Name | Description                  | Required |
| -------- | :--: | ---------------------------- | -------- |
| *Array*  |  ids | Die Liste der gelesenen DTOs | Yes      |

***readById***

Liest ein DTO

*Return type:* [DeliveryTerm](https://developer.vario-software.de/scripting-reference/types#DeliveryTerm)

| Datatype | Name | Description            | Required |
| -------- | :--: | ---------------------- | -------- |
| *number* |  id  | ID vom zu lesenden DTO | Yes      |

## DocumentScriptingService

### Description

Service zur Verarbeitung von Belegen

### Methods

***addDocumentProtocol***

Erstellt einen manuellen Eintrag im Belegprotokoll

| Datatype |       Name      | Description                                            | Required |
| -------- | :-------------: | ------------------------------------------------------ | -------- |
| *number* |    documentId   | ID des Belegs, zu dem der Eintrag angelegt werden soll | Yes      |
| *string* | protocolMessage | Text für den Eintrag                                   | Yes      |

***cancel***

Bricht die Bearbeitung eines Belegs ab (Transition EDIT -> SAVED)

*Return type:* [Document](https://developer.vario-software.de/scripting-reference/types#Document)

| Datatype                                                                                                        |         Name         | Description           | Required |
| --------------------------------------------------------------------------------------------------------------- | :------------------: | --------------------- | -------- |
| *number*                                                                                                        |      documentId      | ID des Belegs         | Yes      |
| Array<[AdditionalParameter](https://developer.vario-software.de/scripting-reference/types#AdditionalParameter)> | additionalParameters | Zusätzliche Parameter | Yes      |

***cancel***

Bricht die Bearbeitung eines Belegs ab (Transition EDIT -> SAVED)

*Return type:* [Document](https://developer.vario-software.de/scripting-reference/types#Document)

| Datatype |    Name    | Description   | Required |
| -------- | :--------: | ------------- | -------- |
| *number* | documentId | ID des Belegs | Yes      |

***copy***

Kopiert einen Beleg in die vorgegebene Ziel-Belegart

*Return type:* [Document](https://developer.vario-software.de/scripting-reference/types#Document)

| Datatype                                                                                                        |         Name         | Description                  | Required |
| --------------------------------------------------------------------------------------------------------------- | :------------------: | ---------------------------- | -------- |
| *number*                                                                                                        |      documentId      | ID des zu kopierenden Belegs | Yes      |
| *string*                                                                                                        |  targetDocumentType  | Ziel-Belegart der Kopie      | Yes      |
| Array<[AdditionalParameter](https://developer.vario-software.de/scripting-reference/types#AdditionalParameter)> | additionalParameters | Zusätzliche Parameter        | Yes      |

***copy***

Kopiert einen Beleg in die vorgegebene Ziel-Belegart

*Return type:* [Document](https://developer.vario-software.de/scripting-reference/types#Document)

| Datatype |           Name          | Description                  | Required |
| -------- | :---------------------: | ---------------------------- | -------- |
| *number* |        documentId       | ID des zu kopierenden Belegs | Yes      |
| *string* | targetDocumentTypeLabel | Ziel-Belegart der Kopie      | Yes      |

***create***

Erstellt einen neuen Beleg

*Return type:* [Document](https://developer.vario-software.de/scripting-reference/types#Document)

| Datatype                                                                                                           |   Name  | Description             | Required |
| ------------------------------------------------------------------------------------------------------------------ | :-----: | ----------------------- | -------- |
| [CreateNewDocumentRequest](https://developer.vario-software.de/scripting-reference/types#CreateNewDocumentRequest) | request | Details zum neuen Beleg | Yes      |

***dissolve***

Löst einen Beleg auf

*Return type:* [Document](https://developer.vario-software.de/scripting-reference/types#Document)

| Datatype                                                                                                        |         Name         | Description                 | Required |
| --------------------------------------------------------------------------------------------------------------- | :------------------: | --------------------------- | -------- |
| *number*                                                                                                        |      documentId      | ID des aufzulösenden Belegs | Yes      |
| Array<[AdditionalParameter](https://developer.vario-software.de/scripting-reference/types#AdditionalParameter)> | additionalParameters | Zusätzliche Parameter       | Yes      |

***dissolve***

Löst einen Beleg auf

*Return type:* [Document](https://developer.vario-software.de/scripting-reference/types#Document)

| Datatype |    Name    | Description                 | Required |
| -------- | :--------: | --------------------------- | -------- |
| *number* | documentId | ID des aufzulösenden Belegs | Yes      |

***edit***

Startet die Bearbeitung eines Belegs (Transition SAVED -> EDIT)

*Return type:* [Document](https://developer.vario-software.de/scripting-reference/types#Document)

| Datatype                                                                                                        |         Name         | Description           | Required |
| --------------------------------------------------------------------------------------------------------------- | :------------------: | --------------------- | -------- |
| *number*                                                                                                        |      documentId      | ID des Belegs         | Yes      |
| Array<[AdditionalParameter](https://developer.vario-software.de/scripting-reference/types#AdditionalParameter)> | additionalParameters | Zusätzliche Parameter | Yes      |

***edit***

Startet die Bearbeitung eines Belegs (Transition SAVED -> EDIT)

*Return type:* [Document](https://developer.vario-software.de/scripting-reference/types#Document)

| Datatype |    Name    | Description   | Required |
| -------- | :--------: | ------------- | -------- |
| *number* | documentId | ID des Belegs | Yes      |

***getAdditionalParameter***

Erstellt ein AdditionalParameter-Objekt

*Return type:* [AdditionalParameter](https://developer.vario-software.de/scripting-reference/types#AdditionalParameter)

| Datatype |  Name | Description              | Required |
| -------- | :---: | ------------------------ | -------- |
| *string* |  key  | Schlüssel des Parameters | Yes      |
| *object* | value | Wert des Parameters      | No       |

***getAdditionalParameterList***

Erstellt eine Liste zur Sammlung von AdditionalParameter-Objekten

*Return type:* Array<[AdditionalParameter](https://developer.vario-software.de/scripting-reference/types#AdditionalParameter)>

***getDocumentTransferToStateRequest***

Erstellt ein Request-Objekt, um einen Beleg in einen anderen Status zu verschieben

*Return type:* [DocumentTransferToStateRequest](https://developer.vario-software.de/scripting-reference/types#DocumentTransferToStateRequest)

***getDocumentTransferToTypeRequest***

Erstellt ein Request-Objekt, um einen Beleg in einen anderen Beleg zu übernehmen (oder zu kopieren)

*Return type:* [DocumentTransferToTypeRequest](https://developer.vario-software.de/scripting-reference/types#DocumentTransferToTypeRequest)

***getNewDocumentLine***

Erstellt ein neues Belegposition-Objekt, um dieses in einen Beleg einzufügen

*Return type:* [DocumentLine](https://developer.vario-software.de/scripting-reference/types#DocumentLine)

***getNewDocumentLineBooking***

Erstellt ein neues Belegbuchung-Objekt, um dieses in einen Beleg einzufügen

*Return type:* [DocumentLineBooking](https://developer.vario-software.de/scripting-reference/types#DocumentLineBooking)

***getNewDocumentPriceModifier***

Erstellt ein neues Beleg-Rabatt/-Zuschlags-Objekt, um dieses in einen Beleg oder eine Position einzufügen

*Return type:* [DocumentPriceModifier](https://developer.vario-software.de/scripting-reference/types#DocumentPriceModifier)

***getNewDocumentRequest***

Erstellt ein Request-Objekt, um einen neuen Beleg zu erstellen

*Return type:* [CreateNewDocumentRequest](https://developer.vario-software.de/scripting-reference/types#CreateNewDocumentRequest)

***getUpdateDocumentRequest***

Erstellt ein Request-Objekt, um einen Beleg zu aktualisieren

*Return type:* [UpdateDocumentRequest](https://developer.vario-software.de/scripting-reference/types#UpdateDocumentRequest)

***print***

Druckt einen Beleg

| Datatype |    Name    | Description                 | Required |
| -------- | :--------: | --------------------------- | -------- |
| *number* | documentId | ID des zu druckenden Belegs | Yes      |

***readById***

Liest einen Beleg über seine ID

*Return type:* [Document](https://developer.vario-software.de/scripting-reference/types#Document)

| Datatype |    Name    | Description     | Required |
| -------- | :--------: | --------------- | -------- |
| *number* | documentId | ID eines Belegs | Yes      |

***save***

Speichert einen Beleg (Transition EDIT -> SAVED)

*Return type:* [Document](https://developer.vario-software.de/scripting-reference/types#Document)

| Datatype                                                                                                        |         Name         | Description                   | Required |
| --------------------------------------------------------------------------------------------------------------- | :------------------: | ----------------------------- | -------- |
| *number*                                                                                                        |      documentId      | ID des zu speichernden Belegs | Yes      |
| Array<[AdditionalParameter](https://developer.vario-software.de/scripting-reference/types#AdditionalParameter)> | additionalParameters | Zusätzliche Parameter         | Yes      |

***save***

Speichert einen Beleg (Transition EDIT -> SAVED)

*Return type:* [Document](https://developer.vario-software.de/scripting-reference/types#Document)

| Datatype |    Name    | Description                   | Required |
| -------- | :--------: | ----------------------------- | -------- |
| *number* | documentId | ID des zu speichernden Belegs | Yes      |

***sendViaMail***

Versendet einen Beleg per Mail

| Datatype |    Name    | Description                   | Required |
| -------- | :--------: | ----------------------------- | -------- |
| *number* | documentId | ID des zu versendenden Belegs | Yes      |

***sendViaMail***

Versendet einen Beleg per Mail

| Datatype |          Name         | Description                   | Required |
| -------- | :-------------------: | ----------------------------- | -------- |
| *number* |       documentId      | ID des zu versendenden Belegs | Yes      |
| *string* | reportGroupIdentifier |                               | No       |

***transferToState***

Überführt einen Beleg in einen anderen Status

*Return type:* [Document](https://developer.vario-software.de/scripting-reference/types#Document)

| Datatype                                                                                                                       |   Name  | Description                                        | Required |
| ------------------------------------------------------------------------------------------------------------------------------ | :-----: | -------------------------------------------------- | -------- |
| [DocumentTransferToStateRequest](https://developer.vario-software.de/scripting-reference/types#DocumentTransferToStateRequest) | request | Request zur Transition zum gewünschten Ziel-Status | Yes      |

***transferToType***

Übernimmt (oder kopiert) einen Beleg in einen anderen Beleg

*Return type:* [Document](https://developer.vario-software.de/scripting-reference/types#Document)

| Datatype                                                                                                                     |   Name  | Description                        | Required |
| ---------------------------------------------------------------------------------------------------------------------------- | :-----: | ---------------------------------- | -------- |
| [DocumentTransferToTypeRequest](https://developer.vario-software.de/scripting-reference/types#DocumentTransferToTypeRequest) | request | Request zur Übernahme eines Belegs | Yes      |

***update***

Aktualisiert einen Beleg

*Return type:* [Document](https://developer.vario-software.de/scripting-reference/types#Document)

| Datatype                                                                                                     |   Name  | Description                           | Required |
| ------------------------------------------------------------------------------------------------------------ | :-----: | ------------------------------------- | -------- |
| [UpdateDocumentRequest](https://developer.vario-software.de/scripting-reference/types#UpdateDocumentRequest) | request | Details zum zu aktualisierenden Beleg | Yes      |

## DunningScriptingService

### Description

Service zur Verarbeitung von Mahnungen

### Methods

***print***

Druckt eine Mahnung

| Datatype |    Name   | Description                  | Required |
| -------- | :-------: | ---------------------------- | -------- |
| *number* | dunningId | ID der zu druckenden Mahnung | Yes      |

***sendViaMail***

Versendet eine Mahnung per Mail

| Datatype |    Name   | Description                    | Required |
| -------- | :-------: | ------------------------------ | -------- |
| *number* | dunningId | ID der zu versendenden Mahnung | Yes      |

## FreeSequencerScriptingService

### Description

Anfragen von neuen Zählerkreis-Nummern

### Methods

***getNextNumber***

Fordert die nächste Nummer des Zählerkreises an und Zählt hoch

*Return type:* *string*

| Datatype |       Name       | Description                   | Required |
| -------- | :--------------: | ----------------------------- | -------- |
| *string* | freeSequencerKey | ID eines Freien Zählerkreises | Yes      |

## HttpClientScriptingService

### Description

HTTP-Client im Scripting

### Methods

***createHttpClient***

Erstellt eine neue Instanz vom HTTP-Client ohne Authentifizierung

*Return type:* [SecureHttpClient](https://developer.vario-software.de/scripting-reference/types#SecureHttpClient)

***createHttpClientWithBasicAuth***

Erstellt eine neue Instanz vom HTTP-Client mit Basic Auth

*Return type:* [SecureHttpClient](https://developer.vario-software.de/scripting-reference/types#SecureHttpClient)

| Datatype |   Name   | Description  | Required |
| -------- | :------: | ------------ | -------- |
| *string* | username | Benutzername | Yes      |
| *string* | password | Passwort     | Yes      |

***createHttpClientWithBearerAuth***

Erstellt eine neue Instanz vom HTTP-Client mit einem Bearer Token

*Return type:* [SecureHttpClient](https://developer.vario-software.de/scripting-reference/types#SecureHttpClient)

| Datatype |     Name    | Description  | Required |
| -------- | :---------: | ------------ | -------- |
| *string* | bearerToken | Bearer Token | Yes      |

## LoggingScriptingService

### Description

Logging im Scripting

### Methods

***debug***

Protokolliert im Level DEBUG

| Datatype |  Name | Description                   | Required |
| -------- | :---: | ----------------------------- | -------- |
| *object* | toLog | Zu protokollierende Nachricht | No       |

***error***

Protokolliert im Level ERROR

| Datatype |  Name | Description                   | Required |
| -------- | :---: | ----------------------------- | -------- |
| *object* | toLog | Zu protokollierende Nachricht | No       |

***info***

Protokolliert im Level INFO

| Datatype |  Name | Description                         | Required |
| -------- | :---: | ----------------------------------- | -------- |
| *object* | toLog | Zu protokollierende Nachricht/Daten | Yes      |

***trace***

Protokolliert im Level TRACE

| Datatype |  Name | Description                         | Required |
| -------- | :---: | ----------------------------------- | -------- |
| *object* | toLog | Zu protokollierende Nachricht/Daten | Yes      |

***warn***

Protokolliert im Level WARN

| Datatype |  Name | Description                   | Required |
| -------- | :---: | ----------------------------- | -------- |
| *object* | toLog | Zu protokollierende Nachricht | No       |

## PaymentMethodScriptingService

### Description

Verwaltung von Zahlungsarten

### Methods

***findByLabel***

Findet eine Zahlungsart über ein Label

*Return type:* [PaymentMethod](https://developer.vario-software.de/scripting-reference/types#PaymentMethod)

| Datatype |  Name | Description             | Required |
| -------- | :---: | ----------------------- | -------- |
| *string* | label | Label einer Zahlungsart | Yes      |

***readAllById***

Liest eine Liste von DTOs

*Return type:* Array<[PaymentMethod](https://developer.vario-software.de/scripting-reference/types#PaymentMethod)>

| Datatype | Name | Description                  | Required |
| -------- | :--: | ---------------------------- | -------- |
| *Array*  |  ids | Die Liste der gelesenen DTOs | Yes      |

***readById***

Liest ein DTO

*Return type:* [PaymentMethod](https://developer.vario-software.de/scripting-reference/types#PaymentMethod)

| Datatype | Name | Description            | Required |
| -------- | :--: | ---------------------- | -------- |
| *number* |  id  | ID vom zu lesenden DTO | Yes      |

## PaymentTermScriptingService

### Description

Verwaltung von Zahlungsbedingungen

### Methods

***createPaymentTermRef***

Lädt ein PaymentTerm über seine ID und liefer ein PaymentTermRef zurück

*Return type:* [PaymentTermRef](https://developer.vario-software.de/scripting-reference/types#PaymentTermRef)

| Datatype | Name | Description          | Required |
| -------- | :--: | -------------------- | -------- |
| *number* |  id  | ID eines PaymentTerm | Yes      |

***createPaymentTermRef***

Liefert ein PaymentTermRef zu einem PaymentTerm

*Return type:* [PaymentTermRef](https://developer.vario-software.de/scripting-reference/types#PaymentTermRef)

| Datatype                                                                                 |     Name    | Description     | Required |
| ---------------------------------------------------------------------------------------- | :---------: | --------------- | -------- |
| [PaymentTerm](https://developer.vario-software.de/scripting-reference/types#PaymentTerm) | paymentTerm | Ein PaymentTerm | Yes      |

***findByLabel***

Findet eine Zahlungsbedingung über ein Label

*Return type:* [PaymentTerm](https://developer.vario-software.de/scripting-reference/types#PaymentTerm)

| Datatype |  Name | Description                   | Required |
| -------- | :---: | ----------------------------- | -------- |
| *string* | label | Label einer Zahlungsbedingung | Yes      |

***readAllById***

Liest eine Liste von DTOs

*Return type:* Array<[PaymentTerm](https://developer.vario-software.de/scripting-reference/types#PaymentTerm)>

| Datatype | Name | Description                  | Required |
| -------- | :--: | ---------------------------- | -------- |
| *Array*  |  ids | Die Liste der gelesenen DTOs | Yes      |

***readById***

Liest ein DTO

*Return type:* [PaymentTerm](https://developer.vario-software.de/scripting-reference/types#PaymentTerm)

| Datatype | Name | Description            | Required |
| -------- | :--: | ---------------------- | -------- |
| *number* |  id  | ID vom zu lesenden DTO | Yes      |

## ProductGroupScriptingService

### Description

Service zur Verarbeitung von Warengruppen im Skripten

### Methods

***activate***

Aktiviert ein DTO

*Return type:* [ProductGroup](https://developer.vario-software.de/scripting-reference/types#ProductGroup)

| Datatype |     Name     | Description                 | Required |
| -------- | :----------: | --------------------------- | -------- |
| *number* | idToActivate | ID vom zu aktivierenden DTO | Yes      |

***create***

Persistiert ein DTO

*Return type:* [ProductGroup](https://developer.vario-software.de/scripting-reference/types#ProductGroup)

| Datatype                                                                                   |   Name   | Description               | Required |
| ------------------------------------------------------------------------------------------ | :------: | ------------------------- | -------- |
| [ProductGroup](https://developer.vario-software.de/scripting-reference/types#ProductGroup) | toCreate | Das zu persistierende DTO | Yes      |

***deactivate***

Deaktiviert ein DTO

*Return type:* [ProductGroup](https://developer.vario-software.de/scripting-reference/types#ProductGroup)

| Datatype |      Name      | Description                   | Required |
| -------- | :------------: | ----------------------------- | -------- |
| *number* | idToDeactivate | ID vom zu deaktivierenden DTO | Yes      |

***deleteById***

Löscht eine Entity

| Datatype | Name | Description                 | Required |
| -------- | :--: | --------------------------- | -------- |
| *number* |  id  | ID der zu löschenden Entity | Yes      |

***getNewDto***

Erstellt eine neue DTO-Instanz

*Return type:* [ProductGroup](https://developer.vario-software.de/scripting-reference/types#ProductGroup)

***readAllById***

Liest eine Liste von DTOs

*Return type:* Array<[ProductGroup](https://developer.vario-software.de/scripting-reference/types#ProductGroup)>

| Datatype | Name | Description                  | Required |
| -------- | :--: | ---------------------------- | -------- |
| *Array*  |  ids | Die Liste der gelesenen DTOs | Yes      |

***readById***

Liest ein DTO

*Return type:* [ProductGroup](https://developer.vario-software.de/scripting-reference/types#ProductGroup)

| Datatype | Name | Description            | Required |
| -------- | :--: | ---------------------- | -------- |
| *number* |  id  | ID vom zu lesenden DTO | Yes      |

***readByLabel***

Liest eine Warengruppe über ihr Label

*Return type:* [ProductGroup](https://developer.vario-software.de/scripting-reference/types#ProductGroup)

| Datatype |  Name | Description             | Required |
| -------- | :---: | ----------------------- | -------- |
| *string* | label | Label einer Warengruppe | Yes      |

***store***

Persistiert eine DTO

*Return type:* [ProductGroup](https://developer.vario-software.de/scripting-reference/types#ProductGroup)

| Datatype                                                                                   |   Name  | Description               | Required |
| ------------------------------------------------------------------------------------------ | :-----: | ------------------------- | -------- |
| [ProductGroup](https://developer.vario-software.de/scripting-reference/types#ProductGroup) | toStore | Das zu persistierende DTO | Yes      |

***update***

Aktualisiert ein persistiertes DTO

*Return type:* [ProductGroup](https://developer.vario-software.de/scripting-reference/types#ProductGroup)

| Datatype                                                                                   |   Name   | Description                   | Required |
| ------------------------------------------------------------------------------------------ | :------: | ----------------------------- | -------- |
| [ProductGroup](https://developer.vario-software.de/scripting-reference/types#ProductGroup) | toUpdate | Die zu aktualisierende Entity | Yes      |

## ProductMainGroupScriptingService

### Description

Service zur Verarbeitung von Hauptwarengruppen im Skripten

### Methods

***activate***

Aktiviert ein DTO

*Return type:* [ProductMainGroup](https://developer.vario-software.de/scripting-reference/types#ProductMainGroup)

| Datatype |     Name     | Description                 | Required |
| -------- | :----------: | --------------------------- | -------- |
| *number* | idToActivate | ID vom zu aktivierenden DTO | Yes      |

***create***

Persistiert ein DTO

*Return type:* [ProductMainGroup](https://developer.vario-software.de/scripting-reference/types#ProductMainGroup)

| Datatype                                                                                           |   Name   | Description               | Required |
| -------------------------------------------------------------------------------------------------- | :------: | ------------------------- | -------- |
| [ProductMainGroup](https://developer.vario-software.de/scripting-reference/types#ProductMainGroup) | toCreate | Das zu persistierende DTO | Yes      |

***deactivate***

Deaktiviert ein DTO

*Return type:* [ProductMainGroup](https://developer.vario-software.de/scripting-reference/types#ProductMainGroup)

| Datatype |      Name      | Description                   | Required |
| -------- | :------------: | ----------------------------- | -------- |
| *number* | idToDeactivate | ID vom zu deaktivierenden DTO | Yes      |

***deleteById***

Löscht eine Entity

| Datatype | Name | Description                 | Required |
| -------- | :--: | --------------------------- | -------- |
| *number* |  id  | ID der zu löschenden Entity | Yes      |

***getNewDto***

Erstellt eine neue DTO-Instanz

*Return type:* [ProductMainGroup](https://developer.vario-software.de/scripting-reference/types#ProductMainGroup)

***readAllById***

Liest eine Liste von DTOs

*Return type:* Array<[ProductMainGroup](https://developer.vario-software.de/scripting-reference/types#ProductMainGroup)>

| Datatype | Name | Description                  | Required |
| -------- | :--: | ---------------------------- | -------- |
| *Array*  |  ids | Die Liste der gelesenen DTOs | Yes      |

***readById***

Liest ein DTO

*Return type:* [ProductMainGroup](https://developer.vario-software.de/scripting-reference/types#ProductMainGroup)

| Datatype | Name | Description            | Required |
| -------- | :--: | ---------------------- | -------- |
| *number* |  id  | ID vom zu lesenden DTO | Yes      |

***readByLabel***

Liest eine Hauptwarengruppe über ihr Label

*Return type:* [ProductMainGroup](https://developer.vario-software.de/scripting-reference/types#ProductMainGroup)

| Datatype |  Name | Description                  | Required |
| -------- | :---: | ---------------------------- | -------- |
| *string* | label | Label einer Hauptwarengruppe | Yes      |

***store***

Persistiert eine DTO

*Return type:* [ProductMainGroup](https://developer.vario-software.de/scripting-reference/types#ProductMainGroup)

| Datatype                                                                                           |   Name  | Description               | Required |
| -------------------------------------------------------------------------------------------------- | :-----: | ------------------------- | -------- |
| [ProductMainGroup](https://developer.vario-software.de/scripting-reference/types#ProductMainGroup) | toStore | Das zu persistierende DTO | Yes      |

***update***

Aktualisiert ein persistiertes DTO

*Return type:* [ProductMainGroup](https://developer.vario-software.de/scripting-reference/types#ProductMainGroup)

| Datatype                                                                                           |   Name   | Description                   | Required |
| -------------------------------------------------------------------------------------------------- | :------: | ----------------------------- | -------- |
| [ProductMainGroup](https://developer.vario-software.de/scripting-reference/types#ProductMainGroup) | toUpdate | Die zu aktualisierende Entity | Yes      |

## ProductPriceScriptingService

### Description

Service zur Verarbeitung von Produktpreisen in Skripten

### Methods

***createPurchaseDiscount***

Legt eine neue Einkaufspreisregel an

*Return type:* [ProductDiscount](https://developer.vario-software.de/scripting-reference/types#ProductDiscount)

| Datatype                                                                                         |       Name      | Description                        | Required |
| ------------------------------------------------------------------------------------------------ | :-------------: | ---------------------------------- | -------- |
| [ProductDiscount](https://developer.vario-software.de/scripting-reference/types#ProductDiscount) | productDiscount | Die anzulegende Einkaufspreisregel | Yes      |

***createPurchasePrice***

Legt einen neuen Einkaufspreis an

*Return type:* [ProductPrice](https://developer.vario-software.de/scripting-reference/types#ProductPrice)

| Datatype                                                                                   |     Name     | Description                   | Required |
| ------------------------------------------------------------------------------------------ | :----------: | ----------------------------- | -------- |
| [ProductPrice](https://developer.vario-software.de/scripting-reference/types#ProductPrice) | productPrice | Der anzulegende Einkaufspreis | Yes      |

***createSalesDiscount***

Legt eine neue Verkaufspreisregel

*Return type:* [ProductDiscount](https://developer.vario-software.de/scripting-reference/types#ProductDiscount)

| Datatype                                                                                         |       Name      | Description                        | Required |
| ------------------------------------------------------------------------------------------------ | :-------------: | ---------------------------------- | -------- |
| [ProductDiscount](https://developer.vario-software.de/scripting-reference/types#ProductDiscount) | productDiscount | Die anzulegende Verkaufspreisregel | Yes      |

***createSalesPrice***

Legt einen neuen Verkaufspreis an

*Return type:* [ProductPrice](https://developer.vario-software.de/scripting-reference/types#ProductPrice)

| Datatype                                                                                   |     Name     | Description                   | Required |
| ------------------------------------------------------------------------------------------ | :----------: | ----------------------------- | -------- |
| [ProductPrice](https://developer.vario-software.de/scripting-reference/types#ProductPrice) | productPrice | Der anzulegende Verkaufspreis | Yes      |

***deleteById***

Löscht eine Entity

| Datatype | Name | Description                 | Required |
| -------- | :--: | --------------------------- | -------- |
| *number* |  id  | ID der zu löschenden Entity | Yes      |

***deletePriceOrDiscountById***

Löscht einen Preis oder eine Preisregel

| Datatype |        Name       | Description                            | Required |
| -------- | :---------------: | -------------------------------------- | -------- |
| *number* | priceOrDiscountId | ID eines Preises oder einer Preisregel | Yes      |

***getNewDiscountDto***

Erstellt eine neue Preisregel-DTO-Instanz

*Return type:* [ProductDiscount](https://developer.vario-software.de/scripting-reference/types#ProductDiscount)

***getNewDto***

Erstellt eine neue DTO-Instanz

*Return type:* [ProductPrice](https://developer.vario-software.de/scripting-reference/types#ProductPrice)

***getNewPriceDto***

Erstellt eine neue Preis-DTO-Instanz

*Return type:* [ProductPrice](https://developer.vario-software.de/scripting-reference/types#ProductPrice)

***getPurchaseDiscounts***

Liefert alle Einkaufspreisregeln zu einem Artikel und Account

*Return type:* Array<[ProductDiscount](https://developer.vario-software.de/scripting-reference/types#ProductDiscount)>

| Datatype |    Name   | Description     | Required |
| -------- | :-------: | --------------- | -------- |
| *number* | articleId | ID des Artikels | Yes      |
| *number* | accountId | ID des Accounts | Yes      |

***getPurchaseDiscountsForCurrency***

Liefert alle Einkaufspreisregeln zu einem Artikel und Account und Währung

*Return type:* Array<[ProductDiscount](https://developer.vario-software.de/scripting-reference/types#ProductDiscount)>

| Datatype |    Name    | Description     | Required |
| -------- | :--------: | --------------- | -------- |
| *number* |  articleId | ID des Artikels | Yes      |
| *number* |  accountId | ID des Accounts | Yes      |
| *number* | currencyId | ID der Währung  | Yes      |

***getPurchaseDiscountsToAccount***

Liefert alle Einkaufspreisregeln zu einem Account

*Return type:* Array<[ProductDiscount](https://developer.vario-software.de/scripting-reference/types#ProductDiscount)>

| Datatype |    Name   | Description     | Required |
| -------- | :-------: | --------------- | -------- |
| *number* | accountId | ID des Accounts | Yes      |

***getPurchaseDiscountsToArticle***

Liefert alle Einkaufspreisregeln zu einem Artikel

*Return type:* Array<[ProductDiscount](https://developer.vario-software.de/scripting-reference/types#ProductDiscount)>

| Datatype |    Name   | Description     | Required |
| -------- | :-------: | --------------- | -------- |
| *number* | articleId | ID des Artikels | Yes      |

***getPurchasePrices***

Liefert alle Einkaufspreise zu einem Artikel und Account

*Return type:* Array<[ProductPrice](https://developer.vario-software.de/scripting-reference/types#ProductPrice)>

| Datatype |    Name   | Description     | Required |
| -------- | :-------: | --------------- | -------- |
| *number* | articleId | ID des Artikels | Yes      |
| *number* | accountId | ID des Accounts | Yes      |

***getPurchasePricesForCurrency***

Liefert alle Einkaufspreise zu einem Artikel und Account und Währung

*Return type:* Array<[ProductPrice](https://developer.vario-software.de/scripting-reference/types#ProductPrice)>

| Datatype |    Name    | Description     | Required |
| -------- | :--------: | --------------- | -------- |
| *number* |  articleId | ID des Artikels | Yes      |
| *number* |  accountId | ID des Accounts | Yes      |
| *number* | currencyId | ID der Währung  | Yes      |

***getPurchasePricesToAccount***

Liefert alle Einkaufspreise zu einem Account

*Return type:* Array<[ProductPrice](https://developer.vario-software.de/scripting-reference/types#ProductPrice)>

| Datatype |    Name   | Description     | Required |
| -------- | :-------: | --------------- | -------- |
| *number* | accountId | ID des Accounts | Yes      |

***getPurchasePricesToArticle***

Liefert alle Einkaufspreise zu einem Artikel

*Return type:* Array<[ProductPrice](https://developer.vario-software.de/scripting-reference/types#ProductPrice)>

| Datatype |    Name   | Description     | Required |
| -------- | :-------: | --------------- | -------- |
| *number* | articleId | ID des Artikels | Yes      |

***getSalesDiscounts***

Liefert alle Verkaufspreisregeln zu einem Artikel und Account

*Return type:* Array<[ProductDiscount](https://developer.vario-software.de/scripting-reference/types#ProductDiscount)>

| Datatype |    Name   | Description     | Required |
| -------- | :-------: | --------------- | -------- |
| *number* | articleId | ID des Artikels | No       |
| *number* | accountId | ID des Accounts | No       |

***getSalesDiscountsForCurrency***

Liefert alle Verkaufspreisregeln zu einem Artikel und Account und Währung

*Return type:* Array<[ProductDiscount](https://developer.vario-software.de/scripting-reference/types#ProductDiscount)>

| Datatype |    Name    | Description     | Required |
| -------- | :--------: | --------------- | -------- |
| *number* |  articleId | ID des Artikels | Yes      |
| *number* |  accountId | ID des Accounts | Yes      |
| *number* | currencyId | ID der Währung  | Yes      |

***getSalesDiscountsToAccount***

Liefert alle Verkaufspreisregeln zu einem Account

*Return type:* Array<[ProductDiscount](https://developer.vario-software.de/scripting-reference/types#ProductDiscount)>

| Datatype |    Name   | Description     | Required |
| -------- | :-------: | --------------- | -------- |
| *number* | accountId | ID des Accounts | Yes      |

***getSalesDiscountsToAccountForCurrency***

Liefert alle Verkaufspreisregeln zu einem Account und Währung

*Return type:* Array<[ProductDiscount](https://developer.vario-software.de/scripting-reference/types#ProductDiscount)>

| Datatype |    Name    | Description     | Required |
| -------- | :--------: | --------------- | -------- |
| *number* |  accountId | ID des Accounts | Yes      |
| *number* | currencyId | ID der Währung  | Yes      |

***getSalesDiscountsToArticle***

Liefert alle Account-unabhängigen Verkaufspreisregeln zu einem Artikel

*Return type:* Array<[ProductDiscount](https://developer.vario-software.de/scripting-reference/types#ProductDiscount)>

| Datatype |    Name   | Description     | Required |
| -------- | :-------: | --------------- | -------- |
| *number* | articleId | ID des Artikels | Yes      |

***getSalesDiscountsToArticleForCurrency***

Liefert alle Account-unabhängigen Verkaufspreisregeln zu einem Artikel und Währung

*Return type:* Array<[ProductDiscount](https://developer.vario-software.de/scripting-reference/types#ProductDiscount)>

| Datatype |    Name    | Description     | Required |
| -------- | :--------: | --------------- | -------- |
| *number* |  articleId | ID des Artikels | Yes      |
| *number* | currencyId | ID der Währung  | Yes      |

***getSalesPrices***

Liefert alle Verkaufspreise zu einem Artikel und Account

*Return type:* Array<[ProductPrice](https://developer.vario-software.de/scripting-reference/types#ProductPrice)>

| Datatype |    Name   | Description     | Required |
| -------- | :-------: | --------------- | -------- |
| *number* | articleId | ID des Artikels | No       |
| *number* | accountId | ID des Accounts | No       |

***getSalesPricesForCurrency***

Liefert alle Verkaufspreise zu einem Artikel und Account und Währung

*Return type:* Array<[ProductPrice](https://developer.vario-software.de/scripting-reference/types#ProductPrice)>

| Datatype |    Name    | Description     | Required |
| -------- | :--------: | --------------- | -------- |
| *number* |  articleId | ID des Artikels | Yes      |
| *number* |  accountId | ID des Accounts | Yes      |
| *number* | currencyId | ID der Währung  | Yes      |

***getSalesPricesToAccount***

Liefert alle Verkaufspreise zu einem Account

*Return type:* Array<[ProductPrice](https://developer.vario-software.de/scripting-reference/types#ProductPrice)>

| Datatype |    Name   | Description     | Required |
| -------- | :-------: | --------------- | -------- |
| *number* | accountId | ID des Accounts | Yes      |

***getSalesPricesToAccountForCurrency***

Liefert alle Verkaufspreise zu einem Account und Währung

*Return type:* Array<[ProductPrice](https://developer.vario-software.de/scripting-reference/types#ProductPrice)>

| Datatype |    Name    | Description     | Required |
| -------- | :--------: | --------------- | -------- |
| *number* |  accountId | ID des Accounts | Yes      |
| *number* | currencyId | ID der Währung  | Yes      |

***getSalesPricesToArticle***

Liefert alle Account-unabhängigen Verkaufspreise zu einem Artikel

*Return type:* Array<[ProductPrice](https://developer.vario-software.de/scripting-reference/types#ProductPrice)>

| Datatype |    Name   | Description     | Required |
| -------- | :-------: | --------------- | -------- |
| *number* | articleId | ID des Artikels | Yes      |

***getSalesPricesToArticleForCurrency***

Liefert alle Account-unabhängigen Verkaufspreise zu einem Artikel und Währung

*Return type:* Array<[ProductPrice](https://developer.vario-software.de/scripting-reference/types#ProductPrice)>

| Datatype |    Name    | Description     | Required |
| -------- | :--------: | --------------- | -------- |
| *number* |  articleId | ID des Artikels | Yes      |
| *number* | currencyId | ID der Währung  | Yes      |

***readAllById***

Liest eine Liste von DTOs

*Return type:* Array<[ProductPrice](https://developer.vario-software.de/scripting-reference/types#ProductPrice)>

| Datatype | Name | Description                  | Required |
| -------- | :--: | ---------------------------- | -------- |
| *Array*  |  ids | Die Liste der gelesenen DTOs | Yes      |

***readById***

Liest ein DTO

*Return type:* [ProductPrice](https://developer.vario-software.de/scripting-reference/types#ProductPrice)

| Datatype | Name | Description              | Required |
| -------- | :--: | ------------------------ | -------- |
| *number* |  id  | ID vom zu lesenden Preis | Yes      |

***readDiscountById***

Liest eine Preisregel

*Return type:* [ProductDiscount](https://developer.vario-software.de/scripting-reference/types#ProductDiscount)

| Datatype |   Name  | Description         | Required |
| -------- | :-----: | ------------------- | -------- |
| *number* | priceId | ID einer Preisregel | Yes      |

***readPriceById***

Liest einen Preis

*Return type:* [ProductPrice](https://developer.vario-software.de/scripting-reference/types#ProductPrice)

| Datatype |   Name  | Description      | Required |
| -------- | :-----: | ---------------- | -------- |
| *number* | priceId | ID eines Preises | Yes      |

***update***

Aktualisiert ein persistiertes DTO

*Return type:* [ProductPrice](https://developer.vario-software.de/scripting-reference/types#ProductPrice)

| Datatype                                                                                   |   Name   | Description                   | Required |
| ------------------------------------------------------------------------------------------ | :------: | ----------------------------- | -------- |
| [ProductPrice](https://developer.vario-software.de/scripting-reference/types#ProductPrice) | toUpdate | Die zu aktualisierende Entity | Yes      |

***updatePurchaseDiscount***

Aktualisiert eine Einkaufspreisregel

*Return type:* [ProductDiscount](https://developer.vario-software.de/scripting-reference/types#ProductDiscount)

| Datatype                                                                                         |       Name      | Description                               | Required |
| ------------------------------------------------------------------------------------------------ | :-------------: | ----------------------------------------- | -------- |
| [ProductDiscount](https://developer.vario-software.de/scripting-reference/types#ProductDiscount) | productDiscount | Die zu aktualisierende Einkaufspreisregel | Yes      |

***updatePurchasePrice***

Aktualisiert einen Einkaufspreis

*Return type:* [ProductPrice](https://developer.vario-software.de/scripting-reference/types#ProductPrice)

| Datatype                                                                                   |     Name     | Description                          | Required |
| ------------------------------------------------------------------------------------------ | :----------: | ------------------------------------ | -------- |
| [ProductPrice](https://developer.vario-software.de/scripting-reference/types#ProductPrice) | productPrice | Der zu aktualisierende Einkaufspreis | Yes      |

***updateSalesDiscount***

Aktualisiert eine Verkaufspreisregel

*Return type:* [ProductDiscount](https://developer.vario-software.de/scripting-reference/types#ProductDiscount)

| Datatype                                                                                         |       Name      | Description                               | Required |
| ------------------------------------------------------------------------------------------------ | :-------------: | ----------------------------------------- | -------- |
| [ProductDiscount](https://developer.vario-software.de/scripting-reference/types#ProductDiscount) | productDiscount | Die zu aktualisierende Verkaufspreisregel | Yes      |

***updateSalesPrice***

Aktualisiert einen Verkaufspreis

*Return type:* [ProductPrice](https://developer.vario-software.de/scripting-reference/types#ProductPrice)

| Datatype                                                                                   |     Name     | Description                          | Required |
| ------------------------------------------------------------------------------------------ | :----------: | ------------------------------------ | -------- |
| [ProductPrice](https://developer.vario-software.de/scripting-reference/types#ProductPrice) | productPrice | Der zu aktualisierende Verkaufspreis | Yes      |

## ProductScriptingService

### Description

Service zur Verarbeitung von Produkten in Skripten

### Methods

***readByArticleId***

Liest ein Produkt anhand einer Artikel-ID

*Return type:* [Product](https://developer.vario-software.de/scripting-reference/types#Product)

| Datatype |    Name   | Description                              | Required |
| -------- | :-------: | ---------------------------------------- | -------- |
| *number* | articleId | ID eines zum Produkt gehörenden Artikels | Yes      |

***readById***

Liest ein Produkt anhand seiner ID

*Return type:* [Product](https://developer.vario-software.de/scripting-reference/types#Product)

| Datatype | Name | Description                 | Required |
| -------- | :--: | --------------------------- | -------- |
| *number* |  id  | ID des zu lesenden Produkts | Yes      |

***update***

Aktualisiert ein Produkt

*Return type:* [Product](https://developer.vario-software.de/scripting-reference/types#Product)

| Datatype                                                                         |   Name   | Description                    | Required |
| -------------------------------------------------------------------------------- | :------: | ------------------------------ | -------- |
| [Product](https://developer.vario-software.de/scripting-reference/types#Product) | toUpdate | Das zu aktualisierende Produkt | Yes      |

## ScenarioScriptingService

### Description

Service zur Verarbeitung von ScenarioActualValue

### Methods

***createScenarioActualValue***

Erstellt ein ScenarioActualValue

*Return type:* [ScenarioActualValue](https://developer.vario-software.de/scripting-reference/types#ScenarioActualValue)

| Datatype                                                                                                 |   Name   | Description                     | Required |
| -------------------------------------------------------------------------------------------------------- | :------: | ------------------------------- | -------- |
| [ScenarioActualValue](https://developer.vario-software.de/scripting-reference/types#ScenarioActualValue) | toCreate | Das zu erstellende Actual-Value | Yes      |

***findScenarioActualValueById***

Findet ein ScenarioActualValue über die ID

*Return type:* [ScenarioActualValue](https://developer.vario-software.de/scripting-reference/types#ScenarioActualValue)

| Datatype |      Name     | Description               | Required |
| -------- | :-----------: | ------------------------- | -------- |
| *number* | actualValueId | ID von einem Actual-Value | Yes      |

***findScenarioActualValuesBySelection***

Liest eine Liste von ScenarioActualValue gemäß der Selektion

*Return type:* Array<[ScenarioActualValue](https://developer.vario-software.de/scripting-reference/types#ScenarioActualValue)>

| Datatype |        Name        | Description                                  | Required |
| -------- | :----------------: | -------------------------------------------- | -------- |
| *number* |     referenceId    | Eine Referenz-ID                             | Yes      |
| *string* |   scenarioDimKey   | Optional: Schlüssel einer Scenario-Dimension | No       |
| *string* | scenarioIdentifier | Optional: Identifier eines Scenarios         | No       |

***findScenarioById***

Findet ein Scenario über die ID

*Return type:* [Scenario](https://developer.vario-software.de/scripting-reference/types#Scenario)

| Datatype |    Name    | Description        | Required |
| -------- | :--------: | ------------------ | -------- |
| *number* | scenarioId | ID eines Scenarios | Yes      |

***findScenarioByIdentifer***

Findet ein Scenario über den Identifier

*Return type:* [Scenario](https://developer.vario-software.de/scripting-reference/types#Scenario)

| Datatype |        Name        | Description                | Required |
| -------- | :----------------: | -------------------------- | -------- |
| *string* | scenarioIdentifier | Identifier eines Scenarios | Yes      |

***findScenarioByLabel***

Findet ein Scenario über das Label

*Return type:* [Scenario](https://developer.vario-software.de/scripting-reference/types#Scenario)

| Datatype |      Name     | Description           | Required |
| -------- | :-----------: | --------------------- | -------- |
| *string* | scenarioLabel | Label eines Scenarios | Yes      |

***findScenarioDimensionById***

Findet eine Scenario-Dimension über die ID

*Return type:* [ScenarioDimension](https://developer.vario-software.de/scripting-reference/types#ScenarioDimension)

| Datatype                                                                           |         Name        | Description                              | Required |
| ---------------------------------------------------------------------------------- | :-----------------: | ---------------------------------------- | -------- |
| [Scenario](https://developer.vario-software.de/scripting-reference/types#Scenario) |       scenario      | Ein Scenario, in dem gesucht werden soll | Yes      |
| *number*                                                                           | scenarioDimensionId | ID einer Scenario-Dimension              | Yes      |

***findScenarioDimensionByKey***

Findet eine Scenario-Dimension über den Key

*Return type:* [ScenarioDimension](https://developer.vario-software.de/scripting-reference/types#ScenarioDimension)

| Datatype                                                                           |         Name         | Description                              | Required |
| ---------------------------------------------------------------------------------- | :------------------: | ---------------------------------------- | -------- |
| [Scenario](https://developer.vario-software.de/scripting-reference/types#Scenario) |       scenario       | Ein Scenario, in dem gesucht werden soll | Yes      |
| *string*                                                                           | scenarioDimensionKey | Key einer Scenario-Dimension             | Yes      |

***findScenarioDimensionValueById***

Findet einen Scenario-Dimension-Wert über die ID

*Return type:* [ScenarioDimensionValue](https://developer.vario-software.de/scripting-reference/types#ScenarioDimensionValue)

| Datatype                                                                                             |           Name           | Description                                         | Required |
| ---------------------------------------------------------------------------------------------------- | :----------------------: | --------------------------------------------------- | -------- |
| [ScenarioDimension](https://developer.vario-software.de/scripting-reference/types#ScenarioDimension) |     scenarioDimension    | Eine Scenario-Dimension, in der gesucht werden soll | Yes      |
| *number*                                                                                             | scenarioDimensionValueId | ID eines Scenario-Dimension-Werts                   | Yes      |

***findScenarioDimensionValueByLabel***

Findet einen Scenario-Dimension-Wert über das Label

*Return type:* [ScenarioDimensionValue](https://developer.vario-software.de/scripting-reference/types#ScenarioDimensionValue)

| Datatype                                                                                             |             Name            | Description                                         | Required |
| ---------------------------------------------------------------------------------------------------- | :-------------------------: | --------------------------------------------------- | -------- |
| [ScenarioDimension](https://developer.vario-software.de/scripting-reference/types#ScenarioDimension) |      scenarioDimension      | Eine Scenario-Dimension, in der gesucht werden soll | Yes      |
| *string*                                                                                             | scenarioDimensionValueLabel | Label eines Scenario-Dimension-Werts                | Yes      |

***getNewActualValueDTO***

Erstellt ein neues ScenarioActualValue-DTO

*Return type:* [ScenarioActualValue](https://developer.vario-software.de/scripting-reference/types#ScenarioActualValue)

***updateScenarioActualValue***

Aktualisiert ein ScenarioActualValue

*Return type:* [ScenarioActualValue](https://developer.vario-software.de/scripting-reference/types#ScenarioActualValue)

| Datatype                                                                                                 |   Name   | Description                         | Required |
| -------------------------------------------------------------------------------------------------------- | :------: | ----------------------------------- | -------- |
| [ScenarioActualValue](https://developer.vario-software.de/scripting-reference/types#ScenarioActualValue) | toUpdate | Das zu aktualisierende Actual-Value | Yes      |

## ScriptOutputHelperService

### Description

Ausgabe-Support Methoden

### Methods

***createOutputRequest***

Erzeugt einen neuen Output-Request

*Return type:* [ScriptOutputRequest](https://developer.vario-software.de/scripting-reference/types#ScriptOutputRequest)

## ScriptingServiceList

### Description

Services

### Attributes:

| Datatype                                                                            | Name                           | Description                                                             | Read-only |
| ----------------------------------------------------------------------------------- | ------------------------------ | ----------------------------------------------------------------------- | --------- |
| [TextEnumerationScriptingService](#TextEnumerationScriptingService)                 | textEnumerationService         | Service zur Verarbeitung von Text-Enumerationen                         | Yes       |
| [VariantAttributeScriptingService](#VariantAttributeScriptingService)               | variantAttributeService        | Service zur Verarbeitung von Variantenattributen in Skripten            | Yes       |
| [CrmTaskScriptingService](#CrmTaskScriptingService)                                 | crmTaskService                 | Service zur Verarbeitung von CRM-Aufgaben                               | Yes       |
| [ShelfDocumentScriptingService](#ShelfDocumentScriptingService)                     | shelfDocumentService           | Service zur Verarbeitung von Shelf-Documents                            | Yes       |
| [AccountScriptingService](#AccountScriptingService)                                 | accountService                 | Service zur Verarbeitung von Accounts                                   | Yes       |
| [DeliveryMethodScriptingService](#DeliveryMethodScriptingService)                   | deliveryMethodService          | Verwaltung von Versandarten                                             | Yes       |
| [LoggingScriptingService](#LoggingScriptingService)                                 | logger                         | Logging im Scripting                                                    | Yes       |
| [CrmDealScriptingService](#CrmDealScriptingService)                                 | crmDealService                 | Service zur Verarbeitung von Deals                                      | Yes       |
| [ProductScriptingService](#ProductScriptingService)                                 | productService                 | Service zur Verarbeitung von Produkten in Skripten                      | Yes       |
| [ProductGroupScriptingService](#ProductGroupScriptingService)                       | productGroupService            | Service zur Verarbeitung von Warengruppen im Skripten                   | Yes       |
| [ProductMainGroupScriptingService](#ProductMainGroupScriptingService)               | productMainGroupService        | Service zur Verarbeitung von Hauptwarengruppen im Skripten              | Yes       |
| [ScriptOutputHelperService](#ScriptOutputHelperService)                             | outputHelper                   | Ausgabe-Support Methoden                                                | Yes       |
| [dtoFactory](#dtoFactory)                                                           | dtoFactory                     | Erstellt DTOs zur Verwendung im Skript                                  | Yes       |
| [ProductPriceScriptingService](#ProductPriceScriptingService)                       | priceService                   | Service zur Verarbeitung von Produktpreisen in Skripten                 | Yes       |
| [ScriptingUtilities](#ScriptingUtilities)                                           | utils                          | Hilfsmethoden zur Verwendung im Scripting                               | Yes       |
| [VariantSchemaScriptingService](#VariantSchemaScriptingService)                     | variantSchemaService           | Service zur Verarbeitung von Variantenschemas in Skripten               | Yes       |
| [ArticleScriptingService](#ArticleScriptingService)                                 | articleService                 | Service zur Verarbeitung von Artikeln im Skripten                       | Yes       |
| [DocumentScriptingService](#DocumentScriptingService)                               | documentService                | Service zur Verarbeitung von Belegen                                    | Yes       |
| [ArticleListingScriptingService](#ArticleListingScriptingService)                   | articleListingService          | Service zur Verarbeitung von Artikel-Listings im Skripten               | Yes       |
| [VariantValueListingScriptingService](#VariantValueListingScriptingService)         | variantValueListingService     | Service zur Verarbeitung von Variantenattributwert-Listings in Skripten | Yes       |
| [PaymentMethodScriptingService](#PaymentMethodScriptingService)                     | paymentMethodService           | Verwaltung von Zahlungsarten                                            | Yes       |
| [FreeSequencerScriptingService](#FreeSequencerScriptingService)                     | freeSequencerService           | Anfragen von neuen Zählerkreis-Nummern                                  | Yes       |
| [VariantValueScriptingService](#VariantValueScriptingService)                       | variantValueService            | Service zur Verarbeitung von Variantenwerten in Skripten                | Yes       |
| [ScenarioScriptingService](#ScenarioScriptingService)                               | scenarioService                | Service zur Verarbeitung von ScenarioActualValue                        | Yes       |
| [VqlScriptingService](#VqlScriptingService)                                         | vqlService                     | Service zur Verarbeitung von Accounts                                   | Yes       |
| [UserAndGroupScriptingService](#UserAndGroupScriptingService)                       | userAndGroupService            | Lesen von Benutzern und Benutzergruppen                                 | Yes       |
| [CrmActivityScriptingService](#CrmActivityScriptingService)                         | crmActivityService             | Service zur Verarbeitung von CRM-Aktivitäten                            | Yes       |
| [VariantAttributeListingScriptingService](#VariantAttributeListingScriptingService) | variantAttributeListingService | Service zur Verarbeitung von Variantenattribut-Listings in Skripten     | Yes       |
| [TagScriptingService](#TagScriptingService)                                         | tagService                     | Service zur Verwendung von Tags                                         | Yes       |
| [DeliveryTermScriptingService](#DeliveryTermScriptingService)                       | deliveryTermService            | Verwaltung von Lieferbedingungen                                        | Yes       |
| [CrmDocumentRefScriptingService](#CrmDocumentRefScriptingService)                   | crmDocumentRefService          | Verwaltung von CRM-Belegreferenzen                                      | Yes       |
| [PaymentTermScriptingService](#PaymentTermScriptingService)                         | paymentTermService             | Verwaltung von Zahlungsbedingungen                                      | Yes       |
| [ArticleSupplierScriptingService](#ArticleSupplierScriptingService)                 | articleSupplierService         | Service zur Verarbeitung von Artikel-Lieferantenbeziehungen im Skripten | Yes       |
| [HttpClientScriptingService](#HttpClientScriptingService)                           | httpClientService              | HTTP-Client im Scripting                                                | Yes       |
| [CrmProjectScriptingService](#CrmProjectScriptingService)                           | crmProjectService              | Service zur Verarbeitung von Projekten                                  | Yes       |
| [DunningScriptingService](#DunningScriptingService)                                 | dunningService                 | Service zur Verarbeitung von Mahnungen                                  | Yes       |

## ScriptingUtilities

### Description

Hilfsmethoden zur Verwendung im Scripting

### Methods

***concatLists***

Verkettet zwei Listen

*Return type:* *Array**dateNow**Aktuelles DatumReturn type:* [*ScriptingDate*](https://developer.vario-software.de/scripting-reference/types#ScriptingDate)***dateTimeNow**Aktueller Datum-Zeit-WertReturn type:* [*ScriptingDateTime*](https://developer.vario-software.de/scripting-reference/types#ScriptingDateTime)***newBigDecimal**Erstellt eine neue BigDecimal-InstanzReturn type: number**newBigDecimal**Erstellt eine neue BigDecimal-InstanzReturn type: number**toApiReference**Erstellt eine API-ReferenzReturn type:* [*ApiObjectReference*](https://developer.vario-software.de/scripting-reference/types#ApiObjectReference)*ShelfDocumentScriptingServiceDescriptionService zur Verarbeitung von Shelf-DocumentsMethods**createAttribution**Erstellt eine neue Verknüpfung zwischen einem DMS-Dokument und einem GeschäftsobjektReturn type:* [*ShelfDocumentAttribution*](https://developer.vario-software.de/scripting-reference/types#ShelfDocumentAttribution)***deleteAttribution**Löscht eine DMS-Verknüpfung**downloadIntoDMS**Lädt eine Datei von einer URL herunter und erstellt ein neues DMS-DokumentReturn type:* [*ShelfDocument*](https://developer.vario-software.de/scripting-reference/types#ShelfDocument)***downloadIntoDMS**Lädt eine Datei von einer URL mit Authentifizierung herunter und erstellt ein neues DMS-DokumentReturn type:* [*ShelfDocument*](https://developer.vario-software.de/scripting-reference/types#ShelfDocument)***findShelfDocumentTypeByKey**Findet ein Dokumentenart über ihren SchlüsselReturn type:* [*ShelfDocumentType*](https://developer.vario-software.de/scripting-reference/types#ShelfDocumentType)***readAllById**Liest eine Liste von DTOsReturn type: Array<*[*ShelfDocument*](https://developer.vario-software.de/scripting-reference/types#ShelfDocument)*>**readById**Liest ein DTOReturn type:* [*ShelfDocument*](https://developer.vario-software.de/scripting-reference/types#ShelfDocument)***setDeletionState**Setzt den Lösch-Status eines Dokuments**update**Aktualisiert ein persistiertes DTOReturn type:* [*ShelfDocument*](https://developer.vario-software.de/scripting-reference/types#ShelfDocument)***updateAttribution**Aktualisiert eine bestehende DMS-VerknüpfungReturn type:* [*ShelfDocumentAttribution*](https://developer.vario-software.de/scripting-reference/types#ShelfDocumentAttribution)*TagScriptingServiceDescriptionService zur Verwendung von TagsMethods**readAllById**Liest eine Liste von DTOsReturn type: Array<*[*TagDto*](https://developer.vario-software.de/scripting-reference/types#TagDto)*>**readById**Liest ein DTOReturn type:* [*TagDto*](https://developer.vario-software.de/scripting-reference/types#TagDto)*TextEnumerationScriptingServiceDescriptionService zur Verarbeitung von Text-EnumerationenMethods**activate**Aktiviert eine Text-EnumerationReturn type:* [*TextEnumGet*](https://developer.vario-software.de/scripting-reference/types#TextEnumGet)***create**Erstellt eine Text-EnumerationReturn type:* [*TextEnumGet*](https://developer.vario-software.de/scripting-reference/types#TextEnumGet)***deactivate**Deaktiviert eine Text-EnumerationReturn type:* [*TextEnumGet*](https://developer.vario-software.de/scripting-reference/types#TextEnumGet)***deleteById**Löscht eine Text-Enumeration**getNewCreateDto**Erstellt eine neue DTO-Instanz zum Anlegen einer Text-EnumerationReturn type:* [*TextEnumCreate*](https://developer.vario-software.de/scripting-reference/types#TextEnumCreate)***readAllById**Liest eine Liste von Text-Enumerationen über ihre IDsReturn type: Array<*[*TextEnumGet*](https://developer.vario-software.de/scripting-reference/types#TextEnumGet)*>**readById**Liest eine Text-Enumeration über ihre IDReturn type:* [*TextEnumGet*](https://developer.vario-software.de/scripting-reference/types#TextEnumGet)***update**Aktualisiert eine Text-EnumerationReturn type:* [*TextEnumGet*](https://developer.vario-software.de/scripting-reference/types#TextEnumGet)*UserAndGroupScriptingServiceDescriptionLesen von Benutzern und BenutzergruppenMethods**findGroupById**Findet eine Benutzergruppe über ihre IDReturn type:* [*Group*](https://developer.vario-software.de/scripting-reference/types#Group)***findGroupByLabel**Findet eine Benutzergruppe über ihr LabelReturn type:* [*Group*](https://developer.vario-software.de/scripting-reference/types#Group)***findUserById**Findet einen Benutzer über seine IDReturn type:* [*User*](https://developer.vario-software.de/scripting-reference/types#User)***findUserByName**Findet einen Benutzer über seinen BenutzernamenReturn type:* [*User*](https://developer.vario-software.de/scripting-reference/types#User)***getCurrentUser**Liefert den aktuellen BenutzerReturn type:* [*User*](https://developer.vario-software.de/scripting-reference/types#User)*VariantAttributeListingScriptingServiceDescriptionService zur Verarbeitung von Variantenattribut-Listings in SkriptenMethods**create**Persistiert ein DTOReturn type:* [*VariantAttributeListing*](https://developer.vario-software.de/scripting-reference/types#VariantAttributeListing)***deleteById**Löscht eine Entity**getNewDto**Erstellt eine neue DTO-InstanzReturn type:* [*VariantAttributeListing*](https://developer.vario-software.de/scripting-reference/types#VariantAttributeListing)***readAllById**Liest eine Liste von DTOsReturn type: Array<*[*VariantAttributeListing*](https://developer.vario-software.de/scripting-reference/types#VariantAttributeListing)*>**readById**Liest ein DTOReturn type:* [*VariantAttributeListing*](https://developer.vario-software.de/scripting-reference/types#VariantAttributeListing)***store**Persistiert eine DTOReturn type:* [*VariantAttributeListing*](https://developer.vario-software.de/scripting-reference/types#VariantAttributeListing)***update**Aktualisiert ein persistiertes DTOReturn type:* [*VariantAttributeListing*](https://developer.vario-software.de/scripting-reference/types#VariantAttributeListing)*VariantAttributeScriptingServiceDescriptionService zur Verarbeitung von Variantenattributen in SkriptenMethods**activate**Aktiviert ein DTOReturn type:* [*VariantAttribute*](https://developer.vario-software.de/scripting-reference/types#VariantAttribute)***create**Persistiert ein DTOReturn type:* [*VariantAttribute*](https://developer.vario-software.de/scripting-reference/types#VariantAttribute)***deactivate**Deaktiviert ein DTOReturn type:* [*VariantAttribute*](https://developer.vario-software.de/scripting-reference/types#VariantAttribute)***deleteById**Löscht eine Entity**getNewDto**Erstellt eine neue DTO-InstanzReturn type:* [*VariantAttribute*](https://developer.vario-software.de/scripting-reference/types#VariantAttribute)***readAllById**Liest eine Liste von DTOsReturn type: Array<*[*VariantAttribute*](https://developer.vario-software.de/scripting-reference/types#VariantAttribute)*>**readById**Liest ein DTOReturn type:* [*VariantAttribute*](https://developer.vario-software.de/scripting-reference/types#VariantAttribute)***store**Persistiert eine DTOReturn type:* [*VariantAttribute*](https://developer.vario-software.de/scripting-reference/types#VariantAttribute)***update**Aktualisiert ein persistiertes DTOReturn type:* [*VariantAttribute*](https://developer.vario-software.de/scripting-reference/types#VariantAttribute)*VariantSchemaScriptingServiceDescriptionService zur Verarbeitung von Variantenschemas in SkriptenMethods**activate**Aktiviert ein DTOReturn type:* [*VariantSchema*](https://developer.vario-software.de/scripting-reference/types#VariantSchema)***create**Persistiert ein DTOReturn type:* [*VariantSchema*](https://developer.vario-software.de/scripting-reference/types#VariantSchema)***deactivate**Deaktiviert ein DTOReturn type:* [*VariantSchema*](https://developer.vario-software.de/scripting-reference/types#VariantSchema)***deleteById**Löscht eine Entity**getNewDto**Erstellt eine neue DTO-InstanzReturn type:* [*VariantSchema*](https://developer.vario-software.de/scripting-reference/types#VariantSchema)***readAllById**Liest eine Liste von DTOsReturn type: Array<*[*VariantSchema*](https://developer.vario-software.de/scripting-reference/types#VariantSchema)*>**readById**Liest ein DTOReturn type:* [*VariantSchema*](https://developer.vario-software.de/scripting-reference/types#VariantSchema)***store**Persistiert eine DTOReturn type:* [*VariantSchema*](https://developer.vario-software.de/scripting-reference/types#VariantSchema)***update**Aktualisiert ein persistiertes DTOReturn type:* [*VariantSchema*](https://developer.vario-software.de/scripting-reference/types#VariantSchema)*VariantValueListingScriptingServiceDescriptionService zur Verarbeitung von Variantenattributwert-Listings in SkriptenMethods**create**Persistiert ein DTOReturn type:* [*VariantValueListing*](https://developer.vario-software.de/scripting-reference/types#VariantValueListing)***deleteById**Löscht eine Entity**getNewDto**Erstellt eine neue DTO-InstanzReturn type:* [*VariantValueListing*](https://developer.vario-software.de/scripting-reference/types#VariantValueListing)***readAllById**Liest eine Liste von DTOsReturn type: Array<*[*VariantValueListing*](https://developer.vario-software.de/scripting-reference/types#VariantValueListing)*>**readById**Liest ein DTOReturn type:* [*VariantValueListing*](https://developer.vario-software.de/scripting-reference/types#VariantValueListing)***store**Persistiert eine DTOReturn type:* [*VariantValueListing*](https://developer.vario-software.de/scripting-reference/types#VariantValueListing)***update**Aktualisiert ein persistiertes DTOReturn type:* [*VariantValueListing*](https://developer.vario-software.de/scripting-reference/types#VariantValueListing)*VariantValueScriptingServiceDescriptionService zur Verarbeitung von Variantenwerten in SkriptenMethods**activate**Aktiviert ein DTOReturn type:* [*VariantValue*](https://developer.vario-software.de/scripting-reference/types#VariantValue)***createValue**Erstellt einen Variantenwert für ein AttributReturn type:* [*VariantValue*](https://developer.vario-software.de/scripting-reference/types#VariantValue)***createValues**Erstellt mehrere Variantenwerte für ein AttributReturn type: Array<*[*VariantValue*](https://developer.vario-software.de/scripting-reference/types#VariantValue)*>**deactivate**Deaktiviert ein DTOReturn type:* [*VariantValue*](https://developer.vario-software.de/scripting-reference/types#VariantValue)***deleteById**Löscht eine Entity**findAllByAttributeId**Liefert alle Variantenwerte eines AttributsReturn type: Array<*[*VariantValue*](https://developer.vario-software.de/scripting-reference/types#VariantValue)*>**readAllById**Liest eine Liste von DTOsReturn type: Array<*[*VariantValue*](https://developer.vario-software.de/scripting-reference/types#VariantValue)*>**readById**Liest ein DTOReturn type:* [*VariantValue*](https://developer.vario-software.de/scripting-reference/types#VariantValue)***update**Aktualisiert ein persistiertes DTOReturn type:* [*VariantValue*](https://developer.vario-software.de/scripting-reference/types#VariantValue)*VqlScriptingServiceDescriptionService zur Verarbeitung von AccountsMethods**query**Führt eine VQL mit Parametern ausReturn type: Array\<Map\<string,object>>**query**Führt eine VQL mit Parametern ausReturn type: Array\<Map\<string,object>>**queryAll**Führt eine VQL mit Parametern ausReturn type: Array\<Map\<string,object>>**queryAll**Führt eine VQL mit Parametern ausReturn type: Array\<Map\<string,object>>dtoFactoryDescriptionErstellt DTOs zur Verwendung im SkriptMethods**createAccount**Erstellt einen neue Instanz von AccountReturn type:* [*Account*](https://developer.vario-software.de/scripting-reference/types#Account)***createAccountAddress**Erstellt einen neue Instanz von AccountAddressReturn type:* [*AccountAddress*](https://developer.vario-software.de/scripting-reference/types#AccountAddress)***createAccountBankdetail**Erstellt einen neue Instanz von AccountBankdetailReturn type:* [*AccountBankdetail*](https://developer.vario-software.de/scripting-reference/types#AccountBankdetail)***createAccountLoanValue**Erstellt einen neue Instanz von AccountLoanValueReturn type:* [*AccountLoanValue*](https://developer.vario-software.de/scripting-reference/types#AccountLoanValue)***createAccountManufacturer**Erstellt einen neue Instanz von AccountManufacturerReturn type:* [*AccountManufacturer*](https://developer.vario-software.de/scripting-reference/types#AccountManufacturer)***createAccountManufacturerDescription**Erstellt einen neue Instanz von AccountManufacturerDescriptionReturn type:* [*AccountManufacturerDescription*](https://developer.vario-software.de/scripting-reference/types#AccountManufacturerDescription)***createAccountPerson**Erstellt einen neue Instanz von AccountPersonReturn type:* [*AccountPerson*](https://developer.vario-software.de/scripting-reference/types#AccountPerson)***createAccountRelation**Erstellt einen neue Instanz von AccountRelationReturn type:* [*AccountRelation*](https://developer.vario-software.de/scripting-reference/types#AccountRelation)***createAdditionalParameter**Erstellt einen neue Instanz von AdditionalParameterReturn type:* [*AdditionalParameter*](https://developer.vario-software.de/scripting-reference/types#AdditionalParameter)***createApiCreatableReference**Erstellt einen neue Instanz von ApiCreatableReferenceReturn type:* [*ApiCreatableReference*](https://developer.vario-software.de/scripting-reference/types#ApiCreatableReference)***createApiObjectReference**Erstellt einen neue Instanz von ApiObjectReferenceReturn type:* [*ApiObjectReference*](https://developer.vario-software.de/scripting-reference/types#ApiObjectReference)***createArticle**Erstellt einen neue Instanz von ArticleReturn type:* [*Article*](https://developer.vario-software.de/scripting-reference/types#Article)***createArticleAvailabilityDetermination**Erstellt einen neue Instanz von ArticleAvailabilityDeterminationReturn type:* [*ArticleAvailabilityDetermination*](https://developer.vario-software.de/scripting-reference/types#ArticleAvailabilityDetermination)***createArticleIdentifier**Erstellt einen neue Instanz von ArticleIdentifierReturn type:* [*ArticleIdentifier*](https://developer.vario-software.de/scripting-reference/types#ArticleIdentifier)***createArticlePrintLabelSettings**Erstellt einen neue Instanz von ArticlePrintLabelSettingsReturn type:* [*ArticlePrintLabelSettings*](https://developer.vario-software.de/scripting-reference/types#ArticlePrintLabelSettings)***createArticleSerialNumber**Erstellt einen neue Instanz von ArticleSerialNumberReturn type:* [*ArticleSerialNumber*](https://developer.vario-software.de/scripting-reference/types#ArticleSerialNumber)***createContact**Erstellt einen neue Instanz von ContactReturn type:* [*Contact*](https://developer.vario-software.de/scripting-reference/types#Contact)***createCountryReference**Erstellt einen neue Instanz von CountryReferenceReturn type:* [*CountryReference*](https://developer.vario-software.de/scripting-reference/types#CountryReference)***createCreateNewDocumentRequest**Erstellt einen neue Instanz von CreateNewDocumentRequestReturn type:* [*CreateNewDocumentRequest*](https://developer.vario-software.de/scripting-reference/types#CreateNewDocumentRequest)***createCrmActivity**Erstellt einen neue Instanz von CrmActivityReturn type:* [*CrmActivity*](https://developer.vario-software.de/scripting-reference/types#CrmActivity)***createCrmActivityType**Erstellt einen neue Instanz von CrmActivityTypeReturn type:* [*CrmActivityType*](https://developer.vario-software.de/scripting-reference/types#CrmActivityType)***createCrmChecklistItem**Erstellt einen neue Instanz von CrmChecklistItemReturn type:* [*CrmChecklistItem*](https://developer.vario-software.de/scripting-reference/types#CrmChecklistItem)***createCrmDeal**Erstellt einen neue Instanz von CrmDealReturn type:* [*CrmDeal*](https://developer.vario-software.de/scripting-reference/types#CrmDeal)***createCrmObjectRef**Erstellt einen neue Instanz von CrmObjectRefReturn type:* [*CrmObjectRef*](https://developer.vario-software.de/scripting-reference/types#CrmObjectRef)***createCrmParticipant**Erstellt einen neue Instanz von CrmParticipantReturn type:* [*CrmParticipant*](https://developer.vario-software.de/scripting-reference/types#CrmParticipant)***createCrmProject**Erstellt einen neue Instanz von CrmProjectReturn type:* [*CrmProject*](https://developer.vario-software.de/scripting-reference/types#CrmProject)***createCrmReference**Erstellt einen neue Instanz von CrmReferenceReturn type:* [*CrmReference*](https://developer.vario-software.de/scripting-reference/types#CrmReference)***createCrmReminder**Erstellt einen neue Instanz von CrmReminderReturn type:* [*CrmReminder*](https://developer.vario-software.de/scripting-reference/types#CrmReminder)***createCrmState**Erstellt einen neue Instanz von CrmStateReturn type:* [*CrmState*](https://developer.vario-software.de/scripting-reference/types#CrmState)***createCrmSubType**Erstellt einen neue Instanz von CrmSubTypeReturn type:* [*CrmSubType*](https://developer.vario-software.de/scripting-reference/types#CrmSubType)***createCrmTask**Erstellt einen neue Instanz von CrmTaskReturn type:* [*CrmTask*](https://developer.vario-software.de/scripting-reference/types#CrmTask)***createCustomer**Erstellt einen neue Instanz von CustomerReturn type:* [*Customer*](https://developer.vario-software.de/scripting-reference/types#Customer)***createDateRange**Erstellt einen neue Instanz von PicklistTemplate$DateRangeReturn type:* [*PicklistTemplate$DateRange*](https://developer.vario-software.de/scripting-reference/types#PicklistTemplateDateRange)***createDocument**Erstellt einen neue Instanz von DocumentReturn type:* [*Document*](https://developer.vario-software.de/scripting-reference/types#Document)***createDocumentAdditionalInfo**Erstellt einen neue Instanz von DocumentAdditionalInfoReturn type:* [*DocumentAdditionalInfo*](https://developer.vario-software.de/scripting-reference/types#DocumentAdditionalInfo)***createDocumentAddress**Erstellt einen neue Instanz von DocumentAddressReturn type:* [*DocumentAddress*](https://developer.vario-software.de/scripting-reference/types#DocumentAddress)***createDocumentContractDetail**Erstellt einen neue Instanz von DocumentContractDetailReturn type:* [*DocumentContractDetail*](https://developer.vario-software.de/scripting-reference/types#DocumentContractDetail)***createDocumentFabricationDetail**Erstellt einen neue Instanz von DocumentFabricationDetailReturn type:* [*DocumentFabricationDetail*](https://developer.vario-software.de/scripting-reference/types#DocumentFabricationDetail)***createDocumentFinanceBooking**Erstellt einen neue Instanz von DocumentFinanceBookingReturn type:* [*DocumentFinanceBooking*](https://developer.vario-software.de/scripting-reference/types#DocumentFinanceBooking)***createDocumentLine**Erstellt einen neue Instanz von DocumentLineReturn type:* [*DocumentLine*](https://developer.vario-software.de/scripting-reference/types#DocumentLine)***createDocumentLineBooking**Erstellt einen neue Instanz von DocumentLineBookingReturn type:* [*DocumentLineBooking*](https://developer.vario-software.de/scripting-reference/types#DocumentLineBooking)***createDocumentLineCommission**Erstellt einen neue Instanz von DocumentLineCommissionReturn type:* [*DocumentLineCommission*](https://developer.vario-software.de/scripting-reference/types#DocumentLineCommission)***createDocumentLineComponent**Erstellt einen neue Instanz von DocumentLineComponentReturn type:* [*DocumentLineComponent*](https://developer.vario-software.de/scripting-reference/types#DocumentLineComponent)***createDocumentLineComponentFabricationDetail**Erstellt einen neue Instanz von DocumentLineComponentFabricationDetailReturn type:* [*DocumentLineComponentFabricationDetail*](https://developer.vario-software.de/scripting-reference/types#DocumentLineComponentFabricationDetail)***createDocumentLineFabricationBookedComponent**Erstellt einen neue Instanz von DocumentLineFabricationBookedComponentReturn type:* [*DocumentLineFabricationBookedComponent*](https://developer.vario-software.de/scripting-reference/types#DocumentLineFabricationBookedComponent)***createDocumentLineFabricationDetail**Erstellt einen neue Instanz von DocumentLineFabricationDetailReturn type:* [*DocumentLineFabricationDetail*](https://developer.vario-software.de/scripting-reference/types#DocumentLineFabricationDetail)***createDocumentLineFabricationDetailSerialNumber**Erstellt einen neue Instanz von DocumentLineFabricationDetailSerialNumberReturn type:* [*DocumentLineFabricationDetailSerialNumber*](https://developer.vario-software.de/scripting-reference/types#DocumentLineFabricationDetailSerialNumber)***createDocumentLinePosDetail**Erstellt einen neue Instanz von DocumentLinePosDetailReturn type:* [*DocumentLinePosDetail*](https://developer.vario-software.de/scripting-reference/types#DocumentLinePosDetail)***createDocumentLineRef**Erstellt einen neue Instanz von DocumentLineRefReturn type:* [*DocumentLineRef*](https://developer.vario-software.de/scripting-reference/types#DocumentLineRef)***createDocumentPosDetail**Erstellt einen neue Instanz von DocumentPosDetailReturn type:* [*DocumentPosDetail*](https://developer.vario-software.de/scripting-reference/types#DocumentPosDetail)***createDocumentPosPayment**Erstellt einen neue Instanz von DocumentPosPaymentReturn type:* [*DocumentPosPayment*](https://developer.vario-software.de/scripting-reference/types#DocumentPosPayment)***createDocumentPriceModifier**Erstellt einen neue Instanz von DocumentPriceModifierReturn type:* [*DocumentPriceModifier*](https://developer.vario-software.de/scripting-reference/types#DocumentPriceModifier)***createDocumentRef**Erstellt einen neue Instanz von DocumentRefReturn type:* [*DocumentRef*](https://developer.vario-software.de/scripting-reference/types#DocumentRef)***createDocumentShippingCost**Erstellt einen neue Instanz von DocumentShippingCostReturn type:* [*DocumentShippingCost*](https://developer.vario-software.de/scripting-reference/types#DocumentShippingCost)***createDocumentTax**Erstellt einen neue Instanz von DocumentTaxReturn type:* [*DocumentTax*](https://developer.vario-software.de/scripting-reference/types#DocumentTax)***createDocumentText**Erstellt einen neue Instanz von DocumentTextReturn type:* [*DocumentText*](https://developer.vario-software.de/scripting-reference/types#DocumentText)***createDocumentTransferToStateRequest**Erstellt einen neue Instanz von DocumentTransferToStateRequestReturn type:* [*DocumentTransferToStateRequest*](https://developer.vario-software.de/scripting-reference/types#DocumentTransferToStateRequest)***createDocumentTransferToTypeRequest**Erstellt einen neue Instanz von DocumentTransferToTypeRequestReturn type:* [*DocumentTransferToTypeRequest*](https://developer.vario-software.de/scripting-reference/types#DocumentTransferToTypeRequest)***createDocumentType**Erstellt einen neue Instanz von DocumentTypeReturn type:* [*DocumentType*](https://developer.vario-software.de/scripting-reference/types#DocumentType)***createDocumentTypeFollowUp**Erstellt einen neue Instanz von DocumentTypeFollowUpReturn type:* [*DocumentTypeFollowUp*](https://developer.vario-software.de/scripting-reference/types#DocumentTypeFollowUp)***createDocumentTypeLabel**Erstellt einen neue Instanz von DocumentTypeLabelReturn type:* [*DocumentTypeLabel*](https://developer.vario-software.de/scripting-reference/types#DocumentTypeLabel)***createDocumentTypeState**Erstellt einen neue Instanz von DocumentTypeStateReturn type:* [*DocumentTypeState*](https://developer.vario-software.de/scripting-reference/types#DocumentTypeState)***createFabricationComponentForProduction**Erstellt einen neue Instanz von FabricationComponentForProductionReturn type:* [*FabricationComponentForProduction*](https://developer.vario-software.de/scripting-reference/types#FabricationComponentForProduction)***createFabricationDefectiveRequest**Erstellt einen neue Instanz von FabricationDefectiveRequestReturn type:* [*FabricationDefectiveRequest*](https://developer.vario-software.de/scripting-reference/types#FabricationDefectiveRequest)***createFabricationProduceRequest**Erstellt einen neue Instanz von FabricationProduceRequestReturn type:* [*FabricationProduceRequest*](https://developer.vario-software.de/scripting-reference/types#FabricationProduceRequest)***createFabricationRemainingComponent**Erstellt einen neue Instanz von FabricationRemainingComponentReturn type:* [*FabricationRemainingComponent*](https://developer.vario-software.de/scripting-reference/types#FabricationRemainingComponent)***createFabricationRevertRequest**Erstellt einen neue Instanz von FabricationRevertRequestReturn type:* [*FabricationRevertRequest*](https://developer.vario-software.de/scripting-reference/types#FabricationRevertRequest)***createFabricationSerialNumber**Erstellt einen neue Instanz von FabricationSerialNumberReturn type:* [*FabricationSerialNumber*](https://developer.vario-software.de/scripting-reference/types#FabricationSerialNumber)***createGroup**Erstellt einen neue Instanz von GroupReturn type:* [*Group*](https://developer.vario-software.de/scripting-reference/types#Group)***createIncomingGoodsTarget**Erstellt einen neue Instanz von DocumentAdditionalInfo$IncomingGoodsTargetReturn type:* [*DocumentAdditionalInfo$IncomingGoodsTarget*](https://developer.vario-software.de/scripting-reference/types#DocumentAdditionalInfoIncomingGoodsTarget)***createIncomingGoodsTargetOfLine**Erstellt einen neue Instanz von DocumentAdditionalInfo$IncomingGoodsTargetOfLineReturn type:* [*DocumentAdditionalInfo$IncomingGoodsTargetOfLine*](https://developer.vario-software.de/scripting-reference/types#DocumentAdditionalInfoIncomingGoodsTargetOfLine)***createMetric**Erstellt einen neue Instanz von Article$MetricReturn type:* [*Article$Metric*](https://developer.vario-software.de/scripting-reference/types#ArticleMetric)***createOrderIntoPickingConvertResult**Erstellt einen neue Instanz von DocumentAdditionalInfo$OrderIntoPickingConvertResultReturn type:* [*DocumentAdditionalInfo$OrderIntoPickingConvertResult*](https://developer.vario-software.de/scripting-reference/types#DocumentAdditionalInfoOrderIntoPickingConvertResult)***createOrderSelectionOptions**Erstellt einen neue Instanz von PicklistTemplate$OrderSelectionOptionsReturn type:* [*PicklistTemplate$OrderSelectionOptions*](https://developer.vario-software.de/scripting-reference/types#PicklistTemplateOrderSelectionOptions)***createPaymentTermRef**Erstellt einen neue Instanz von PaymentTermRefReturn type:* [*PaymentTermRef*](https://developer.vario-software.de/scripting-reference/types#PaymentTermRef)***createPickTrolley**Erstellt einen neue Instanz von PickTrolleyReturn type:* [*PickTrolley*](https://developer.vario-software.de/scripting-reference/types#PickTrolley)***createPickTrolleyBox**Erstellt einen neue Instanz von PickTrolleyBoxReturn type:* [*PickTrolleyBox*](https://developer.vario-software.de/scripting-reference/types#PickTrolleyBox)***createPicklist**Erstellt einen neue Instanz von PicklistReturn type:* [*Picklist*](https://developer.vario-software.de/scripting-reference/types#Picklist)***createPicklistCreationOptions**Erstellt einen neue Instanz von PicklistTemplate$PicklistCreationOptionsReturn type:* [*PicklistTemplate$PicklistCreationOptions*](https://developer.vario-software.de/scripting-reference/types#PicklistTemplatePicklistCreationOptions)***createPicklistLine**Erstellt einen neue Instanz von PicklistLineReturn type:* [*PicklistLine*](https://developer.vario-software.de/scripting-reference/types#PicklistLine)***createPicklistLineBooking**Erstellt einen neue Instanz von PicklistLineBookingReturn type:* [*PicklistLineBooking*](https://developer.vario-software.de/scripting-reference/types#PicklistLineBooking)***createPicklistLineComponent**Erstellt einen neue Instanz von PicklistLineComponentReturn type:* [*PicklistLineComponent*](https://developer.vario-software.de/scripting-reference/types#PicklistLineComponent)***createPicklistProcessingOptions**Erstellt einen neue Instanz von PicklistTemplate$PicklistProcessingOptionsReturn type:* [*PicklistTemplate$PicklistProcessingOptions*](https://developer.vario-software.de/scripting-reference/types#PicklistTemplatePicklistProcessingOptions)***createPicklistScript**Erstellt einen neue Instanz von PicklistTemplate$PicklistScriptReturn type:* [*PicklistTemplate$PicklistScript*](https://developer.vario-software.de/scripting-reference/types#PicklistTemplatePicklistScript)***createPicklistTemplate**Erstellt einen neue Instanz von PicklistTemplateReturn type:* [*PicklistTemplate*](https://developer.vario-software.de/scripting-reference/types#PicklistTemplate)***createPriceSelectionCriteria**Erstellt einen neue Instanz von PriceSelectionCriteriaReturn type:* [*PriceSelectionCriteria*](https://developer.vario-software.de/scripting-reference/types#PriceSelectionCriteria)***createPrintedTranslatedField**Erstellt einen neue Instanz von DocumentAdditionalInfo$PrintedTranslatedFieldReturn type:* [*DocumentAdditionalInfo$PrintedTranslatedField*](https://developer.vario-software.de/scripting-reference/types#DocumentAdditionalInfoPrintedTranslatedField)***createRequestDocument**Erstellt einen neue Instanz von RequestDocumentReturn type:* [*RequestDocument*](https://developer.vario-software.de/scripting-reference/types#RequestDocument)***createRequestDocumentLine**Erstellt einen neue Instanz von RequestDocumentLineReturn type:* [*RequestDocumentLine*](https://developer.vario-software.de/scripting-reference/types#RequestDocumentLine)***createRequestDocumentLineBooking**Erstellt einen neue Instanz von RequestDocumentLineBookingReturn type:* [*RequestDocumentLineBooking*](https://developer.vario-software.de/scripting-reference/types#RequestDocumentLineBooking)***createRequestDocumentLineCommission**Erstellt einen neue Instanz von RequestDocumentLineCommissionReturn type:* [*RequestDocumentLineCommission*](https://developer.vario-software.de/scripting-reference/types#RequestDocumentLineCommission)***createRequestDocumentLineFabricationDetail**Erstellt einen neue Instanz von RequestDocumentLineFabricationDetailReturn type:* [*RequestDocumentLineFabricationDetail*](https://developer.vario-software.de/scripting-reference/types#RequestDocumentLineFabricationDetail)***createRequestDocumentPriceModifier**Erstellt einen neue Instanz von RequestDocumentPriceModifierReturn type:* [*RequestDocumentPriceModifier*](https://developer.vario-software.de/scripting-reference/types#RequestDocumentPriceModifier)***createRequestDocumentText**Erstellt einen neue Instanz von RequestDocumentTextReturn type:* [*RequestDocumentText*](https://developer.vario-software.de/scripting-reference/types#RequestDocumentText)***createRevenueCalculation**Erstellt einen neue Instanz von RevenueCalculationReturn type:* [*RevenueCalculation*](https://developer.vario-software.de/scripting-reference/types#RevenueCalculation)***createSalesAgent**Erstellt einen neue Instanz von SalesAgentReturn type:* [*SalesAgent*](https://developer.vario-software.de/scripting-reference/types#SalesAgent)***createScenarioActualValue**Erstellt einen neue Instanz von ScenarioActualValueReturn type:* [*ScenarioActualValue*](https://developer.vario-software.de/scripting-reference/types#ScenarioActualValue)***createScenarioDimension**Erstellt einen neue Instanz von ScenarioDimensionReturn type:* [*ScenarioDimension*](https://developer.vario-software.de/scripting-reference/types#ScenarioDimension)***createScenarioDimensionValue**Erstellt einen neue Instanz von ScenarioDimensionValueReturn type:* [*ScenarioDimensionValue*](https://developer.vario-software.de/scripting-reference/types#ScenarioDimensionValue)***createSequencerConfiguration**Erstellt einen neue Instanz von SequencerConfigurationReturn type:* [*SequencerConfiguration*](https://developer.vario-software.de/scripting-reference/types#SequencerConfiguration)***createSequencerConfigurationDetail**Erstellt einen neue Instanz von SequencerConfigurationDetailReturn type:* [*SequencerConfigurationDetail*](https://developer.vario-software.de/scripting-reference/types#SequencerConfigurationDetail)***createSerialNumberWithQuantityApi**Erstellt einen neue Instanz von SerialNumberWithQuantityApiReturn type:* [*SerialNumberWithQuantityApi*](https://developer.vario-software.de/scripting-reference/types#SerialNumberWithQuantityApi)***createShelfDocument**Erstellt einen neue Instanz von ShelfDocumentReturn type:* [*ShelfDocument*](https://developer.vario-software.de/scripting-reference/types#ShelfDocument)***createShelfDocumentAttribution**Erstellt einen neue Instanz von ShelfDocumentAttributionReturn type:* [*ShelfDocumentAttribution*](https://developer.vario-software.de/scripting-reference/types#ShelfDocumentAttribution)***createShelfDocumentType**Erstellt einen neue Instanz von ShelfDocumentTypeReturn type:* [*ShelfDocumentType*](https://developer.vario-software.de/scripting-reference/types#ShelfDocumentType)***createShelfFile**Erstellt einen neue Instanz von ShelfFileReturn type:* [*ShelfFile*](https://developer.vario-software.de/scripting-reference/types#ShelfFile)***createShelfFileMetaData**Erstellt einen neue Instanz von ShelfFileMetaDataReturn type:* [*ShelfFileMetaData*](https://developer.vario-software.de/scripting-reference/types#ShelfFileMetaData)***createShelfShare**Erstellt einen neue Instanz von ShelfShareReturn type:* [*ShelfShare*](https://developer.vario-software.de/scripting-reference/types#ShelfShare)***createShelfTranslatableText**Erstellt einen neue Instanz von ShelfTranslatableTextReturn type:* [*ShelfTranslatableText*](https://developer.vario-software.de/scripting-reference/types#ShelfTranslatableText)***createStorageBinRef**Erstellt einen neue Instanz von StorageBinRefReturn type:* [*StorageBinRef*](https://developer.vario-software.de/scripting-reference/types#StorageBinRef)***createSubFileInfo**Erstellt einen neue Instanz von SubFileInfoReturn type:* [*SubFileInfo*](https://developer.vario-software.de/scripting-reference/types#SubFileInfo)***createSupplier**Erstellt einen neue Instanz von SupplierReturn type:* [*Supplier*](https://developer.vario-software.de/scripting-reference/types#Supplier)***createTagDto**Erstellt einen neue Instanz von TagDtoReturn type:* [*TagDto*](https://developer.vario-software.de/scripting-reference/types#TagDto)***createTaxIdForeignCountry**Erstellt einen neue Instanz von TaxIdForeignCountryReturn type:* [*TaxIdForeignCountry*](https://developer.vario-software.de/scripting-reference/types#TaxIdForeignCountry)***createTssSignature**Erstellt einen neue Instanz von TssSignatureReturn type:* [*TssSignature*](https://developer.vario-software.de/scripting-reference/types#TssSignature)***createUnitTypeReference**Erstellt einen neue Instanz von UnitTypeReferenceReturn type:* [*UnitTypeReference*](https://developer.vario-software.de/scripting-reference/types#UnitTypeReference)***createUpdateDocumentRequest**Erstellt einen neue Instanz von UpdateDocumentRequestReturn type:* [*UpdateDocumentRequest*](https://developer.vario-software.de/scripting-reference/types#UpdateDocumentRequest)***createUser**Erstellt einen neue Instanz von UserReturn type:* [*User*](https://developer.vario-software.de/scripting-reference/types#User)***createVariantDescription**Erstellt einen neue Instanz von VariantDescriptionReturn type:* [*VariantDescription*](https://developer.vario-software.de/scripting-reference/types#VariantDescription)
