---
title: ".Execute (.workflow-Objektmethode)"
---
[TOC]

#### Beschreibung

Starts the workflow execution with the given user and company context. Returns the execution record ID.

#### Argumente

<table style="table-layout: fixed; width: min(100%, 837px);"><colgroup><col style="width: 26.5%"><col style="width: 21.7%"><col style="width: 51.7%"></colgroup><tr><th class="smt-cell-highlight"><p><strong>Name</strong></p></th><th class="smt-cell-highlight"><p><strong>Typ</strong></p></th><th class="smt-cell-highlight"><p><strong>Beschreibung</strong></p></th></tr><tr><td><p>UserID</p></td><td><p><a href="/smt-school-professional/technische-dokumentation/opus-dokumentation/standard-datentypen/integer/"><u>integer</u></a></p></td><td><p>ID of the user on whose behalf the workflow runs</p></td></tr><tr><td><p>OperatorUserID</p></td><td><p><a href="/smt-school-professional/technische-dokumentation/opus-dokumentation/standard-datentypen/integer/"><u>integer</u></a></p></td><td><p>ID of the operator user initiating the execution</p></td></tr><tr><td><p>OperatorUserGroupID</p></td><td><p><a href="/smt-school-professional/technische-dokumentation/opus-dokumentation/standard-datentypen/integer/"><u>integer</u></a></p></td><td><p>ID of the operator user group initiating the execution</p></td></tr><tr><td><p>CompanyID</p></td><td><p><a href="/smt-school-professional/technische-dokumentation/opus-dokumentation/standard-datentypen/integer/"><u>integer</u></a></p></td><td><p>ID of the company context for the execution</p></td></tr><tr><td><p>StartDateTime</p></td><td><p><a href="/smt-school-professional/technische-dokumentation/opus-dokumentation/standard-datentypen/datetime/">datetime</a></p></td><td><p>(optional) scheduled start date and time; defaults to immediate execution</p></td></tr></table>

#### Rückgabewert [<u>integer</u>](../../../standard-datentypen/integer.md)

ID of the workflow execution record created; 0 on error

#### Beispiel

| `xxx` |
| --- |

#### Siehe auch

---
