Choose the trigger before building the flow
Administrators manage automation in Setup → Flows. A flow definition has a stable identity and versioned logic. Choose the trigger according to when the work should happen.
| Type | Use |
|---|---|
| Record-triggered, before save | Set values on the record being saved before validation and persistence. |
| Record-triggered, after save | Perform follow-up work after the record has been stored. |
| Attachment, after upload | React to a newly stored attachment on a record. |
| Scheduled | Run at configured times, optionally for records matching a filter. |
| Screen flow | Guide an authenticated user through inputs and actions. |
| Incoming email | Process messages from a configured mailbox with entry conditions. |
Work with versions
- Open the flow definition and inspect its versions.
- Create a new draft, or clone a new version from an existing flow.
- Edit the draft in Flow Builder and save it.
- Check the trigger, resources, elements, connectors and failure paths.
- Activate only after testing the intended behaviour.

- Check the flow definition and create a replacement draft.
- Identify the active version and its controls.
- Follow the immutable-version workflow.
Select the screenshot to open the full-size image.
Active versions are immutable. To change one, create a new draft and activate the replacement. Activation deactivates the previous active version. Running screen interviews and execution logs refer to a specific version, so the definition name alone does not identify the exact logic that ran.
Save without losing a draft
Save draft keeps the builder open. Save & close returns to the version list only after a successful save. If another editor saved the same version, your local changes remain on screen. Copy anything you need before choosing Reload: reloading replaces your local draft with the saved version.

- Read the conflict notice before choosing Reload.
- Your unsaved trigger setting stays visible.
- Save & close leaves the editor only after a successful save.
Select the screenshot to open the full-size image.
Build the graph
Select Start to configure the trigger and entry conditions. Add elements for assignment, decisions, loops, record reads and writes, email, AI queries or supported plugin actions. Screen elements are used for interactive flows. Connect each branch to its intended next element and give elements meaningful names.
Resources hold values, records or collections between steps. Choose the appropriate data type and, for record or collection resources, the related object. An assignment changes flow state; a record-writing element persists the intended changes through the normal record service.
Configure resources
Open Resources in the builder and add a resource. Give it a unique technical name using letters, digits and underscores, beginning with a letter or underscore. Expressions refer to this name, for example total or current_item.name.
| Kind | How to use it |
|---|---|
| Variable | Stores a value produced by an assignment, screen input, record read or action. Scalar and record variables start empty; collections start as an empty list. |
| Constant | Provides a typed starting value. Enter the value in Initial value, for example 100 for a number or true for Yes/No. A text starting value is literal text rather than a quoted expression. |
| Formula | Enter a formula expression. It is evaluated during resource initialisation in resource order. Put any required initial values before it. It is not automatically recalculated after later assignments; use another Assignment at the point where a fresh calculation is needed. |
| Choice | This kind appears in the resource selector, but the current resource panel does not configure its source. Choosing it alone does not load picklist options. Configure screen choices in the screen component instead. |
The resource panel exposes Name, Kind, Data type, the object for records/collections, and the starting value or formula where applicable. Input/output direction and nullability exist in the flow definition but are not separate controls in this panel. Do not confuse a resource’s data type with a screen component’s required-input setting.

- Define the constant and its initial value.
- Define the formula after the resource it depends on.
- Save the draft and test the persisted result before using the flow.
Select the screenshot to open the full-size image.
In the illustrated example, the Number constant base_amount starts at 100 and the Number formula total evaluates base_amount * 2. A before-save Assignment writes total into the source field gesamt. The saved test record contains 200. Give intermediate resources distinct names so they do not collide with source fields already available in the flow.
Choose the element for the operation
| Element | Configuration and result |
|---|---|
| Assignment | Set a resource, add to a numeric value or append to a collection. The right-hand value is an expression; quote text literals such as "Ready". Changing a resource does not itself save a database record. |
| Decision | Define ordered outcomes and their conditions. The first matching outcome wins; use the default outcome when none matches. Connect both expected and fallback paths. |
| Loop | Choose a collection and a current-item resource. Connect the loop body back to the Loop element and connect the after-loop branch to the next step. An optional index starts at 1. An empty collection goes directly to the after-loop branch. Exceeding the iteration limit is an error, not successful completion of a partial list. |
| Get Records | Select the object, filters, ordering and result resource. First record produces one record or empty; retrieving several records produces a collection. Use an explicit filter and limit appropriate to the task. |
| Create Records | Supply field expressions and optionally store the created record in a record resource. That resource can then be read by field or used as an update target. |
| Update Records | Select the actual record resource or configured filter target and supply field expressions. Check the persisted values after execution. |
| Screen | Collect input or display results in an interactive flow. See Screen flows for required inputs, navigation and downloads. |
| Action | Choose an action from the installed catalogue, map its parameters and optionally store its result. Use the parameter’s supported expression or merge-text mode. See Plugins and integrations. |
| AI Query | Map a prompt to a configured model and capture either a text answer or structured fields. Set the error behaviour explicitly, as described below. |
Existing flows may contain the older Send Email element. New email work uses the email.senden catalogue action. There is no dedicated Delete Records element in the current flow graph.
Use AI output in a flow
- Create resources for the expected output. Use Text for a free-form answer or suitable scalar types for structured fields.
- Add AI Query and choose a configured model, or the setup default. A specifically selected model does not silently fall back to another model if unavailable.
- Enter the task in the prompt, optionally with a system instruction. Merge record values with syntax such as
{!$Datensatz.notizen}. - For a text response, choose the destination resource. For structured output, define each destination resource, output type and a description of the expected value.
- Choose whether an unavailable or failing AI should continue with empty results or take the error path/stop. Add a Decision to check the result before any record update.
- Persist approved values using the normal Create Records or Update Records elements. AI output alone does not save a field.
Prompts and their included record values are processed by the configured provider. Use only the data needed by the task. Empty structured fields are possible; a flow that continues after an AI error must not erase existing values accidentally. The execution protocol includes a note when the AI step was skipped. See AI models and configuration for the shared model setup.
Use the right expression context
In Flow conditions, refer to current record fields as $Datensatz.feld, using the actual field API name. For example, $Datensatz.wahrscheinlichkeit refers to the probability field. A comparison can use a fixed value or a supported expression on its right side.
Assignment targets and record resources are separate configuration choices. For the handbook’s before-save example, the field-backed assignment target is wahrscheinlichkeit and the expression is 20. Do not assume every target input accepts the same syntax as a condition.
Example: set an initial probability
- Create a before-save flow for Opportunities, triggered when a record is created.
- Add an entry condition that
$Datensatz.wahrscheinlichkeitis blank. - Add an assignment that sets the probability field resource to
20. - Connect Start to that assignment, save and activate the version.
- Create a test opportunity with Amount 500 and no probability.
- Read it back: Probability should be 20 and Weighted amount should be 100.
Also test a record with an explicit probability to confirm that the default does not overwrite it. A defaulting flow should have a narrow condition, not run on every later edit.
Select the actual write target
For Update Records, provide the record resource that should be updated. A common pattern is Get Records into a record resource, then Update Records using that resource. Verify the saved value afterwards; a flow reaching a final screen does not by itself prove that any record was changed.
Before-save flows update their own record values. Use after-save or an appropriate other flow type for work on additional records. Automatic and scheduled flows can run with system privileges, so their conditions and targets require careful administrator review. Screen flows use the running user’s access.
Example: create a follow-up after saving
- Create an after-save flow for the source object. Select the created event and an entry condition such as
$Datensatz.ausfuehrenequalstrue. - Add Create Records for the follow-up object. Supply all required fields. A name expression such as
"Review " & $Datensatz.namecombines a literal with the source name. - Connect Start, save the draft and activate it from the version list.
- Create one matching and one nonmatching source record. Only the matching record should produce a follow-up. Read both objects back.
In the checked example, Workshop produced Review Workshop; Not ready produced nothing. A replacement version changed the generated name. Activating it deactivated the original version. To stop future automatic runs, deactivate the active version.
Example: process records on a schedule
- Create a Scheduled flow and open Trigger / start.
- Select Daily, enter 09:00, and choose Europe/Berlin as the time zone.
- Add a filter for the intended records. The example selects Name equals Workshop.
- Read the target record into a record resource and use Update Records to set Processed to true. Add an email action only when a notification is required.
- Save, activate and ensure the server scheduler is enabled. Check the saved record, execution record and any queued email after the scheduled time.

- Set frequency, local time and time zone.
- Restrict the records and choose catch-up behaviour.
- Persist the processing result with Update Records.
Select the screenshot to open the full-size image.
The checked schedule ran once for its time slot; a second scheduler tick created no duplicate run or queued message. Queueing a message does not prove delivery. The illustration includes the existing Send Email element; for a new flow, select the supported email.senden action from the action catalogue.
Daily schedules follow the configured time zone, including daylight-saving changes. Hourly schedules use stable hourly slots. Catch up on missed runs replays missed slots after a previous run, up to 50 per check. With catch-up disabled, only the newest due slot runs. On the first check, only the newest slot is considered. Catch-up disabled therefore does not mean a late scheduler will never execute.
The supported Cron patterns are M H * * * (daily), M * * * * (hourly) and * * * * * (every minute), with numeric minute and hour values where shown. Do not assume that ranges, lists or weekday expressions are supported.
Example: make PDF attachment text searchable
- Create a File attachment (after upload) flow on the object containing the records. Add entry conditions to restrict processing.
- Add a text resource, for example
extrahiert, and a single-record resource, for exampleziel, for the same object. - Add the action
dokument.pdf_text_extrahierenand store its output inextrahiert. - Add Get Records for the current object. Match ID against the expression
$Datensatz.id, retrieve the first matching record and store it inziel. - Add Update Records using
zielas its record resource. Map the destination long-text field to the expressionextrahiert. - Connect the elements, save and activate. Upload a PDF containing selectable text, then read the record back and search for a distinctive phrase.

- Extract local PDF text.
- Read the current record into the target resource.
- Save the extracted text in the destination field.
- Keep the text result and target record in separate resources.
Select the screenshot to open the full-size image.
This action extracts PDF text locally without an AI request. It does not perform OCR on scanned pages. Its single primitive output is stored directly in the resource: use extrahiert, not extrahiert.text. Actions returning multiple properties instead store a JSON string.
The upload trigger runs after every successful attachment upload. The action searches the record’s attachments: an explicit filename filter takes precedence; otherwise it prefers a CV/resume/profile filename, or the only PDF. Multiple ambiguous PDFs, a missing match or extraction failure can produce an empty result. Add a Decision checking that the extracted text is not blank before overwriting an existing destination value. Merely attaching a file does not add its contents to global search; saving the extracted text in a searchable record field does.
Process incoming email
An Incoming email flow uses the active Microsoft 365 account under Setup → Outbox. It cannot select a separate mailbox. Configure the source object, filter conditions and the folder for processed messages in the trigger panel. Filters for sender address, sender name, recipient, subject and text are combined with AND; text matching is case-insensitive.

- The flow uses the active Microsoft 365 account under Setup → Outbox.
- Add conditions before activating this draft.
- Successful processing moves the message to this folder.
Select the screenshot to open the full-size image.
The illustrated draft has no filter yet. Add the intended subject or sender condition before activation; an empty filter matches all incoming messages. The English editor saves Processed as the default destination folder.
Use the $Email context, for example $Email.betreff for the subject, in flow expressions. Add Create Records or another explicit writing action to persist the intended result. The local check matched TRAINING against a training subject filter, created one record and ignored an unrelated message. Repeating the poll did not create a duplicate.
After all matching flows succeed, the message is moved out of the inbox into the configured processed folder. If several flows match, they all run; the first matching flow supplies the destination folder. This is separate from mailbox capture, which does not move messages. A failed flow releases the processing claim so a later poll can retry. Earlier successful writes are not automatically rolled back, so design retries to avoid duplicate effects. If moving the message fails after successful processing, the claim remains and the flows are not automatically rerun.
The handbook check uses a simulated mailbox and the real flow engine; it does not establish delivery or access for a live Microsoft account. Verify the account connection and folder behaviour before enabling this automation for real mail.
Handle a failing element deliberately
Connect the element’s error branch to a recovery step when the workflow has a meaningful fallback. In the checked example, Create Records omitted a required name; its error branch created a correctly named follow-up instead. The execution status was ok_mit_fehlerbehandlung (completed with handled error).

- The attempted write fails because a required field is missing.
- The error connector selects the fallback.
- The recovery step creates the valid follow-up.
Select the screenshot to open the full-size image.
A recovery path should record enough information to identify the original failure. Do not use a success-looking final screen as proof that every intended write succeeded. After-save work occurs after the original record is stored; a later failure does not undo that original save.
Test and inspect execution
The builder’s Debug control is available for screen flows. It saves the draft first and runs real actions; see Run screen flows. Automatic flows are tested through their actual event: save a record, upload a file, process a scheduled slot or receive a matching message.
There is currently no execution-history screen. Administrators can inspect the latest 50 execution records for a version through GET /api/fluss-versionen/{versionId}/ausfuehrungen. Check the execution status, error, element protocol and duration, then verify the resulting record, attachment or outbox item. See API and MCP for authenticated access.

