Skip to content
Smart Templates Manual Website Manual for your AI

Flows

In short

A flow runs in Power Automate and can carry on after the document. In the window “Manage flows” you create it as a scaffold, open it, copy its ID and remove it. What it should do, you build in Power Automate. The page guides you through creating a flow, the list and the connection through which the flow reaches your data, and shows how to assign a connection to a flow. Which flow a button starts, you choose in the assistant.

Manage flows

A flow in Power Automate can carry on after the document, for example by filing it in SharePoint, sending it as an attachment or starting an approval. In the window “Manage flows” you create such a flow, open it, copy its ID and remove it. The flow is created here; what it should do, you build in Power Automate. Only what is in the solution “STFluesse” (display name “Smart Templates – Flows”) is shown and created. Other flows you manage in Power Automate.

The button “↻ Manage flows” in the header bar is described in Buttons: the assistant: The two buttons in the header bar. The window also opens from the assistant, with the button “Create flow …” (see Buttons: the assistant: The button “Create flow …”).

  1. At the top, click “↻ Manage flows”. The list shows the flows of the solution, switched on or switched off.
  2. Click “Create a new flow”. Enter a name and choose the “Connection”. “↻ Check” looks up which connections can still be used.
  3. Click “Create ▸”. After about ten seconds, the flow is set up, switched on and opens in Power Automate. If you did not choose a connection, the designer first shows how to assign one in Power Automate; until then the flow does not run.
  4. If the flow has no connection to Dataverse yet, assign one to it in Power Automate. The steps are described, step by step, under The windows “Create a connection” and “First the connection — here is how”.
  5. In Power Automate, replace the step “Hier Ihre Schritte” (your steps here) with what is to happen, for example “Save file to SharePoint”, and save the flow.
  6. In the assistant “Manage buttons in Dynamics”, in the step “Should a Power Automate flow run afterwards?”, choose the flow under “Yes, start this flow” (see Buttons: the assistant: The step “Should a Power Automate flow run afterwards?”). The assistant offers it only for templates with the same primary table with which you created it (details under Buttons: the assistant: The selection list “Flow”); without a primary source, no flow can be created. The instructions for the button then already contain the chosen flow. If you enter it by hand, “⧉ ID” in “Manage flows” copies the same value (see The list).

Tip

After switching on, it takes up to a minute until the trigger is ready and Dynamics delivers requests to the flow (measured: not yet after 5 seconds, yes after 45 seconds). A click on the button before that does not reach it. So try the flow with a button only about a minute after switching it on. The designer reminds you of this after creating the flow, in the message box of “Manage flows” and in the green box of the assistant, with the same sentence: “⚠ After switching on, it can take up to a minute until Dynamics delivers requests to the flow — a button click before that does not reach it.”

A flow that is switched off or removed makes the buttons that point to it cancel. What applies then and what you can do is described under Removing a flow.

The window

ElementWhat it does
Window “Manage flows” A wide window that adapts to the window width on narrow screens. The content scrolls, the footer bar stays fixed. A click next to it or Escape closes it without a prompt, even while something is running. A creation that has already been submitted keeps running and reports its result to the assistant. A running connection check stops after the current step. The state lives only in the window, not in the template: a flow belongs to the environment, not to the document.
Loading screen Instead of the list and buttons, a spinning circle and a sentence appear in the middle: “Searching for flows …”, “Creating the flow and switching it on …” or “Removing …”. If “Reduce motion” is set in the operating system, it spins more slowly. As long as it is showing, the footer bar is empty; Escape and a click next to it still close the window.
Orange error box In Dynamics it says “Flow management could not be loaded. The reason:” with the reason, for example a missing read right or throttling. Without Dynamics it says “This window needs Dynamics. The flow features are not available locally.” The box also appears if only reading the connections fails. The footer bar stays in that case; “Create a new flow” then remains visible, but the creation view again shows only the error box. Without Dynamics, no flow can be created. Open the designer in Dynamics.

The list

Above the list are “The flows in this environment” and the sentence “These are the flows this designer created. Other flows belong to Power Automate and are managed there.” Strictly speaking, the window lists all cloud flows of the solution “STFluesse”, newest first, including those that someone put there by hand. Flows outside this solution never appear. There is no upper limit of its own.

If Dataverse does not deliver everything at once (over 5,000 entries), an orange note appears: “The list may be incomplete: Dataverse did not deliver all entries at once. You can find further flows in Power Automate in the solution »STFluesse«.” If the solution is missing or contains no cloud flow, it says “No flow created yet. Start with »Create a new flow« below.”

The window “Manage flows”. Under the heading “The flows in this environment” is the sentence “These are the flows this designer created. Other flows belong to Power Automate and are managed there.” Below it, three cards one below the other. Each shows the flow name in bold on the left (“Smart Templates – Rechnung”, “Smart Templates – Angebot”, “Beleg in SharePoint ablegen”) and below it the state: “switched on · via a document request” for the first two, “⚠ switched off · via a document request” for the third. On the right of each card are three buttons: “Edit” with a pencil, “ID” with two small boxes and a narrow button with a red ✕. At the bottom left is the blue button “Create a new flow” with a flow symbol, at the bottom right “Close”.
The list in “Manage flows”. Names and states are examples.
  1. 1Name and state of the card: The state is in plain words under the name.
  2. 2“Edit” opens the flow in Power Automate; it is built there.
  3. 3“ID” copies “flow:…” for the parameter on the button.
  4. 4The red “✕” removes the flow after a prompt.
  5. 5“Create a new flow” switches to the creation view.

Each flow is a card. The name is in bold; without a name it says “(no name)”. Below it is the state in plain words: “switched on” or “⚠ switched off”, followed by “via a document request” (the flow listens to the table “Smart Templates Auslöser”), “can be triggered” (on-demand) or “⚠ not on-demand”. A flow you built yourself on the table “Smart Templates Auslöser” can wrongly carry “⚠ not on-demand” there, because with very many flows the window checks only the 250 newest for it. On the right are three buttons:

ButtonWhat it does
“✎ Edit” Tooltip: “Opens the flow in Power Automate — that is where it is built.” Opens the flow editor in a new tab.
“⧉ ID” Tooltip: “Copy the flow ID — it goes on the button as »flow:…«.” Copies flow:ID to the clipboard; only once that has worked does the button show “Copied ✓” for 1.4 seconds. Otherwise the window “Flow ID” opens with “Select to copy:”, a field with the value and the buttons “Cancel” and “Done”. The button is meant for entering it by hand in the command designer; the assistant itself writes flow:ID in its instructions.
“✕” (red) Tooltip: “Remove this flow”. See Removing a flow.

Removing a flow

The button “✕” first asks in the window “Remove flow?”: “»Name« will be removed from Power Automate. This cannot be undone.” The buttons are “Cancel” and, in red, “Remove”; the focus is on “Remove”, so the Enter key confirms. Escape or a click next to the window cancels. After the confirmation, “Removing …” appears: the flow is switched off and deleted. Afterward the message box says “»Name« was removed.” or “Not removed: error”, and the list is reloaded. The connection reference stays in place. If the call came from the assistant, it clears its flow selection, whichever flow was removed.

Caution

The prompt ends with: “Buttons that point to this flow will then stop with a message — neither a document nor an email is created. So first delete the parameter with »flow:« from these buttons in the command designer.” Users then see only the error message “The specified flow was not found. Please check the flow identifier …”. What you should do before removing is described under What happens on click: When the button cancels.

A button whose flow is merely switched off cancels in the same way. What users then see and what you can do is described at the same place; how to delete the parameter is described under Adding, changing and removing a button: Changing or removing a button.

Message box and other buttons

ElementWhat it does
Blue message box It appears above the list or the form, but only after an action. It shows the result of the last action: removed, created, check result, progress of the check or error.
“→ Switch to the flow” It appears below the box, but only if the editor tab was actually filled when creating. Tooltip: “The flow is already open — this button brings the tab to the front.” It brings the editor tab to the front or opens the flow again if the tab is closed.
“Create a new flow” Highlighted button with a drawn symbol, at the left of the footer bar, in the list view, also next to an error box. It switches to the view “Create a new flow”. In doing so, the window forgets the target of the previous creation and clears the message box.
“Close” At the right of the footer bar, in the list view only. Closes the window.

The “Create a new flow” view

The explanatory text says: The flow is created here and opens in Power Automate right away; you build in there what should happen, we only create the scaffold. The flow belongs to the account with which you create it (its owner). Which license this account needs and which role belongs to creating is described under Rights and roles: Creating a flow. If the account lacks the read right on the table “Smart Templates Auslöser”, the flow gets no requests (see Rights and roles: Printing documents).

If the license is missing, switching on fails with “Microsoft does not allow this flow to be switched on: The signed-in account lacks a license that allows Dataverse in flows (a Dynamics 365 license or Power Automate Premium). The System Administrator role does not replace a license.” The half-created flow is then removed again.

  • Template without a primary source: An orange box replaces the form: “This template has no primary source yet — without one, no flow can be created: the flow’s step »Hauptdatensatz holen« (get primary record) enters its table as a fixed value, and under »Manage buttons in Dynamics« the flow is only offered for templates with the same primary table. Create a data source first.” Name, table and connection are then missing, and “Create ▸” is disabled. Create a primary source first, see Data sources and relationships: The primary source.
  • No connection yet: An orange box says: There is no connection yet that the flow can point to; you can create it anyway and then assign the connection in Power Automate. Below it are the buttons “Create a connection …” (highlighted, with a symbol; tooltip: “Shows step by step how a connection is created — with a link to get there.”, opens the window Create a connection) and “↻ Search again” (tooltip: “Check again whether a connection exists now.”, reloads the connections). Below that follow a dividing line and the form as usual, with “— none yet · assign in Power Automate —” as the only choice.
The window “Manage flows” in the view “Create a new flow”. An explanatory text says that the flow is created here and opens in Power Automate right away, that it belongs to the creating account and that its license must be a Dynamics 365 license or Power Automate Premium. Below it, three rows with labels on the left: “Name” with a text field “Smart Templates – Rechnung Standard” and the note “This is what the flow will be called later in Power Automate.”; “Table” with a dimmed, non-editable field “Rechnung (invoice)” and a longer note; “Connection” with a selection list (“Smart Templates – Dataverse”), a small button with an arrow pointing to the upper right and the button “Check” with a circular arrow; below it the note that the flow reaches the data through it and that a connection that has just been created appears only once it has been used in a solution. Below that, “None that fits? How to create one.” with an underlined link. At the bottom left the button “Back”, at the bottom right a blue button “Create ▸”.
Creating a flow: name, table of the template and connection.
  1. 1The field “Name”: This is what the flow will be called later in Power Automate; the suggestion can be changed.
  2. 2The dimmed field “Table”: the table of the template. It cannot be changed.
  3. 3The selection list “Connection” with the buttons “↗” and “↻ Check” next to it: The connection is how the flow reaches the data; “Check” hides connections that can no longer be used.
  4. 4The link “How to create one”: It opens the instructions on how a connection is created.
  5. 5“Create ▸” creates the flow and opens it in Power Automate.
SettingWhat it doesDefault
“Name” (text field) This is what the flow will be called later in Power Automate (note below). The name is stripped of spaces only at the edges and is not checked otherwise. What is in the field is what is created; if you leave the suggestion, the flow is called that. If you empty the field and create right away, the flow is called “Smart Templates – Flow”. If the window rebuilds beforehand, for example through “↻ Check”, the suggestion is back in the field. After a creation, the field keeps the name last used as long as the window is open; the suggestion returns only after reopening. “Smart Templates – template name”, without a template name with the logical table name
“Table” (read-only, dimmed) Shows “name of the primary source (logical name)” and cannot be changed. Note below: The table of this template, the document is generated from it. The flow is tied to it: its step “Hauptdatensatz holen” enters it as a fixed value, and in the assistant it is therefore only offered for templates with the same primary table. It is started by a document request. In rare cases the flow carries no fixed table, for example with a source with incomplete details; it is then offered to every template. On click, Smart Templates does not check the binding anyway. the primary source of the template
“Connection” (selection list with the buttons “↗” and “↻ Check” next to it) Chooses the Dataverse connection through which the flow reaches the data. Entries: “— none yet · assign in Power Automate —” and, for each existing connection reference, its display name. Details are under The connection in detail. the connection reference offered that was created last; if you explicitly choose “none yet”, this choice stays, even while “↻ Check” is running
“↗” next to the selection Opens the chosen connection in Power Automate (detail page) in a new tab. The button follows the selection immediately and is grayed out for “none yet”. Tooltip with a connection chosen: Open this connection in Power Automate, where state, owner and “Reconnect” are shown; if it no longer exists, you land in the connection list. With “none yet”: Choose a connection first, there is nothing to open. –
“↻ Check” next to the selection Checks which connections can still be used. Anything that fails is no longer offered. The check runs only on a button press. Details are under The connection check. –
Note “None that fits? How to create one.” It is always below the selection, with or without connections. The link “How to create one” opens the window Create a connection. If you close it with “↻ Done — search again”, the window reloads flows and connections. –
“◂ Back” (at the left of the footer bar) Back to the list. Clears the message box. –
“Create ▸” (right, highlighted) Creates the flow. Disabled if the template has no primary source. See What happens at “Create ▸”. –

The connection in detail

  • What is in the list: The existing connection references with a connection are listed, not the connections themselves. Several flows share one reference: an existing reference of the same connection is reused instead of creating a new one. The window reads at most 50 connection references and does not say so if there are more.
  • “none yet”: Creates a reference without a connection or takes an existing empty one. The flow then runs only once the connection is assigned in Power Automate.
  • Hidden connections: Connections that were noticed as “no longer exist” during checking or creating are missing from the list. The tooltip then says, in substance: A number of connections are hidden because they no longer existed at the last check; “↻ Check” looks again and brings them back if they exist again. The browser remembers which ones are hidden; the list therefore applies only in this browser.
  • Note below: If there are connections, it says: This is how the flow reaches your data; a connection you have just created only appears here once it has been used in a solution, otherwise choose “none yet”. If there are none, it says: None there yet? No problem, the flow is created anyway, and you assign the connection when you edit it in Power Automate.

The connection check

“↻ Check” has the tooltip: Creates a test flow as a draft for each connection and removes it again immediately; anything that fails is no longer offered; this takes a few seconds per connection. The button first forgets which connections were hidden, reloads the connections and checks them one by one. The draft flow is called “Smart Templates – Verbindungsprobe” (connection test) and is never switched on. There is never more than one test flow at a time.

  • While it runs, the button carries “… n/m” and is disabled. The message box says “Checking: name (n of m)”.
  • Result in the box: “Found n new — there are now m.” or “Checked — m connection(s).”, plus “All of them can be used.” or the statement that one or n of them no longer exist and are no longer offered, with names. If applicable, these follow: that some could not be checked and stay in the selection, and that a test flow was left behind and has to be removed in Power Automate. If everything fails, it says “Not checked: error”.
  • Prerequisites and duration: The check briefly writes to the environment and needs the right to create flows (see Rights and roles: Creating a flow). Only what the platform clearly reports as “no longer exists” counts as dead; other errors leave the connection in the list. Healthy connections take, as measured, three to nineteen seconds, dead ones about one. The check runs only on a button press, never on opening. If you close the window, it stops after the running step.

What happens at “Create ▸”

  1. If a connection is chosen, an empty tab opens right on the click. It carries the title “Flow …” and shows a spinner. If “none yet” is chosen, the window “First the connection — here is how” opens first (see The windows “Create a connection” and “First the connection — here is how”); the flow is created only after its “Continue ▸”.
  2. The window shows the loading screen “Creating the flow and switching it on …” (measured at about ten seconds). The sequence: the solution “STFluesse” (created the first time, display name “Smart Templates – Flows”), the connection reference (an existing one is reused, otherwise a new one is created as “Smart Templates – Dataverse”), the flow, switching it on. The editor opens in Power Automate in the prepared tab, and the window returns to the list. The message box says: “The flow is set up and switched on.”, below it the steps, for example “Solution was already there. · Existing connection reference reused. · Flow created. · The step »Beleg erzeugen« is already in. · Switched on.”, and the reminder about the wait after switching on (see the tip under Manage flows).
  3. On an error it says “Did not finish: reason”, below it “What is already in place: steps”. The window then stays in the creation view. A half-created flow is removed again, the empty tab is closed.

If the call came from the assistant, it selects the new flow. If the browser blocks the tab, it says: Your browser blocked the new tab; open the flow via “✎ Edit” in the list or allow pop-ups for this page. How to allow pop-ups is described under What happens on click: How to allow pop-ups.

Known errors of the platform are translated:

  • “The trigger does not cope with this table. The connection is fine — the problem is the table.”
  • “The chosen connection no longer exists — it was deleted in Power Automate. Choose »none yet« or another one.” The connection is hidden afterward.
  • The license sentence from The “Create a new flow” view.
  • If the publisher with the prefix “st” is missing on the first creation, it says “The publisher »st« is missing in this environment.”

Notes on the setup are under Preparing buttons and flows.

The scaffold of the created flow

The trigger is called “Wenn Smart Templates einen Beleg anfordert” (when Smart Templates requests a document): a Dataverse row trigger on the table “Smart Templates Auslöser”, change type “Added”, scope “Organization”, with a row filter on the identifier of exactly this flow. The following steps come next:

  • “Beleg erzeugen” (create document): builds the document as a PDF with the values from the trigger row (template, table, record) and returns it as text, its file name in FileName (see Template settings: PDF name). If the template has an e-invoice “XML only”, the XML is in XmlBase64 as text (name in XmlFileName), and the PDF is missing or is the reading copy (see E-invoice: The flow);
  • “Hauptdatensatz holen” (get primary record): fetches the record, the table is entered as a fixed value;
  • “Hier Ihre Schritte” (your steps here): a placeholder with an explanatory text that you replace with your own steps. The text says where the document is (body/PdfBase64, name in body/FileName) and, for an e-invoice “XML only”, the XML (body/XmlBase64, name in body/XmlFileName). It also runs if “Hauptdatensatz holen” fails, but not if the document fails.

The flow does not influence the document: it builds the document once more itself with “Beleg erzeugen”.

What the scaffold looks like in Power Automate is shown in the figure under Preparing buttons and flows: Creating a flow. How to build such a flow yourself without the designer is described under Actions and APIs: Starting a flow.

The windows “Create a connection” and “First the connection — here is how”

The instructions show how to assign a Dataverse connection to a flow in Power Automate. The window has two modes:

  • Create a connection (for reference): opened with the button “Create a connection …” or the link “How to create one”. The footer bar shows only “Close”.
  • First the connection — here is how (as a gate): The window opens by itself at “Create ▸” with “none yet”. Escape, a click next to it and any other closing count there as cancel: no flow is created.

The content scrolls, the footer bar stays in place.

Caution

Assign the connection only through the trigger of the flow, as the six steps below describe. A connection that you create on the page “Connections” of Power Automate does not produce a connection reference and does not appear in the designer under “Connection”, so not in the selection.

ElementWhat it does
Orange bold box (as a gate only) It first says why the window opened: You have not chosen a connection yet; without one, the flow is created but does not run, and you still have to assign the connection to it in Power Automate. Here is how:
Introduction and pop-up warning A connection tells Power Automate who may access your data. The easiest way is to create it where you are editing the flow anyway. The warning for this: your browser must not block pop-ups for Power Automate, the sign-in window is one. If a red message appears instead, allow pop-ups for Power Automate and choose “Done”. How to allow pop-ups is described under What happens on click: How to allow pop-ups.
“↗ View connections” Opens the connection list of Power Automate in a new tab. Grayed out if the environment ID is missing (for example without Dynamics). Tooltip, in substance: Shows the existing connections in Power Automate; one newly created there does not appear in the designer’s selection, the steps below are for that.
“↻ Done — search again” Tooltip: “Closes this window and searches for the connections again.” As instructions for reference, it closes the window and reloads flows and connections in “Manage flows”. As a gate, it only closes the window; that acts like “Cancel”, no flow is created and nothing is searched again.
The six steps (blue circles 1 to 6, steps 2 to 6 with a photo) (1) Create the flow here, even without a connection. It then opens in Power Automate. (2) There, click the first step, “Wenn Smart Templates einen Beleg anfordert”. At the very bottom of the window, below all the fields, is “Change connection reference”. (3) Click it. In the window that opens, click “Add new”. (4) Give it a name and click “Sign in”, then sign in with your Dynamics account. (5) The new connection is now in the list. Select it and confirm. (6) The bottom now shows the connection instead of the bare reference. Save the flow, done. If a photo does not load, steps 2 and 3 show a drawing, and for the others the image is omitted. The photos of steps 2 and 3 still date from the time of the old trigger and show “When a row is modified”; the text gives today’s name.
Enlarge image Tooltip on the image: “Click to see the image enlarged.” A click shows the photo large on a dark background; a click or Escape closes the large view. Presumably Escape also closes the instructions in that case, as a gate thus with cancel; this has not been measured. So close the large view with a click.
Link “Microsoft describes connections in detail: Add and manage connections” (at the end) Opens Microsoft’s page on adding and managing connections (learn.microsoft.com) in a new tab.
“Close” (for reference only) Closes the window.
Status line “Please read down to the bottom once — then you can continue.” or “Read — you can continue.” (as a gate only) “Continue ▸” becomes available only once you have scrolled all the way down and the images have loaded. If everything fits into the window without scrolling, the button becomes available as soon as the images are in place. If an image does not load, the window waits at most 6 seconds for it.
“Cancel” (as a gate only) Closes the window. No flow is created.
“Continue ▸” (as a gate only, highlighted) Tooltip at first: “Read down to the bottom first.” Disabled until the instructions count as read. The click immediately opens an empty tab for the flow editor, closes the window and starts the creation with “none yet”.

The labels in the command designer and in Power Automate come from Microsoft and were read off in September 2026; they may change. If the screen differs from the text, follow what you see there.

What changes in the document?

On the canvas

Nothing. The button “↻ Manage flows” and all settings in its window change nothing on the sheet. The state of the window lives only there, not in the template.

In the PDF

No setting of the window changes the PDF, and the flow has no influence on the document that the button prints. How else a document from a button differs from the PDF from the designer is described under Full preview and PDF: Full preview and printing in Dynamics. If the flow is switched off or removed at the time of the click, no document is created at all.