{"title":"Create automated flows","url":"https://jonas-paprotka.de/docs/dev-itpro/powerplatform/automate-workflows/","by":"JOP-AL","license":"Copyright (c) Microsoft Corporation. CC BY 4.0, https://creativecommons.org/licenses/by/4.0/; code samples MIT. From https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/powerplatform/automate-workflows, MicrosoftDocs/dynamics365smb-devitpro-pb at 828b6ee (2026-11-19). Changed: includes filled in, links to this site, and for agents shortened without dropping a fact.","credit":"Microsoft Corporation, CC BY 4.0","origin":"https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/powerplatform/automate-workflows","source":{"name":"Business Central developer and IT pro docs","repo":"https://github.com/MicrosoftDocs/dynamics365smb-devitpro-pb","commit":"828b6ee72fcd75755627cd6011f3d20899217ab2","date":"2026-11-19"},"checked":"2026-11-19","description":"Learn how to give your customers access to automated workflows, so they can run Power Automate flows from inside Business Central online.","date":"2023-04-21","meta":{"topic":"how-to"},"outline":[{"level":1,"title":"Create automated flows","slug":"create-automated-flows","at":0,"chars":2835},{"level":2,"title":"About automated flows","slug":"about-automated-flows","at":299,"chars":1186},{"level":2,"title":"Prerequisites","slug":"prerequisites","at":1485,"chars":206},{"level":2,"title":"Create an automated flow from scratch","slug":"create-an-automated-flow-from-scratch","at":1691,"chars":1144},{"level":1,"title":"Starting from blank<#tab/blank>","slug":"starting-from-blanktabblank","at":2835,"chars":457},{"level":1,"title":"Starting from a connector<#tab/connector>","slug":"starting-from-a-connectortabconnector","at":3292,"chars":4949},{"level":2,"title":"Create a flow from a template","slug":"create-a-flow-from-a-template","at":7468,"chars":773},{"level":3,"title":"Get started","slug":"get-started","at":8166,"chars":75},{"level":1,"title":"From Business Central<#tab/bc>","slug":"from-business-centraltabbc","at":8241,"chars":913},{"level":1,"title":"From Power Automate<#tab/pa>","slug":"from-power-automatetabpa","at":9154,"chars":2010},{"level":2,"title":"Use the connector for other scenarios","slug":"use-the-connector-for-other-scenarios","at":9824,"chars":1081},{"level":2,"title":"Related information","slug":"related-information","at":10905,"chars":259}],"text":"# Create automated flows\n> APPLIES TO: Business Central online\nThis article explains how you can set up Business Central online to run Power Automate flows when an event happens in Business Central.\n> NOTE\n> To use Power Automate with Business Central, you must have a valid Power Automate account.\n## About automated flows\nAutomated flows are designed to run automatically when an event occurs in Business Central. Unlike instant flows, which require a user to manually run the flow, automated flows run as the user works in Business Central, requiring no extra action on their part.\nAn automated flow consists of at least one trigger (the event that starts the flow) and one action (does an operation). To support creating flows, the Business Central connector includes several https://learn.microsoft.com/connectors/dynamicssmbsaas/#triggers and https://learn.microsoft.com/connectors/dynamicssmbsaas/#actions that you can use.\nThe connector seamlessly connects data and gives you the option to include Dynamic content when you create automated flows. The Business Central triggers return data, like the ID of a record, which actions later in the flow can consume. Business Central actions also return data that can be passed to other actions.\n> NOTE\n> The Business Central connector for Power Automate supports multiple production and sandbox environments. If you haven't created multiple production or sandbox environments, Production is the only available option you can choose.\n## Prerequisites\n Power Automate premium license or a license that includes premium connectors. See Power Automate licenses<https://learn.microsoft.com/power-platform/admin/power-automate-licensing/types>.\n## Create an automated flow from scratch\nThis procedure outlines the steps required to create an automated flow using the Business Central connector. To illustrate the process, it walks you through a basic example of a flow that sends a message to a Teams group chat when a new customer is created or modified in Business Central. The message contains a card that shows some information about the customer and a Details button that opens even more information about the customer. The card is the same as the one displayed in Teams when you manually share a record to Teams</across-working-with-teams> from inside Business Central.\nThe following figure illustrates the flow that you create.\n![Shows the structure of the flow that includes the record is created (V3) trigger, get record trigger, and the post message to teams chat trigger.]\nComplete the following steps:\n1. Sign in to Power Automate<https://powerautomate.com> or, from a page in Business Central, select Automate> Power Automate > Create automated flow or Manage Flows.\n2. On the left side, select Create, then choose to create by starting from blank or starting from connector:\n# Starting from blank<#tab/blank>\n1. Under Starting from blank, select Automated cloud flow.\n2. On the Build an automated cloud flow page, give your flow a name in the Flow name field.\n3. Under Choose how to trigger this flow, search for the Business Central trigger for starting the flow.\n For this example, type business central in the search box, then find and select https://learn.microsoft.com/connectors/dynamicssmbsaas#when-a-record-is-created-(v3).\n# Starting from a connector<#tab/connector>\n1. Under Starting from a connector, select All connectors.\n2. In the search, type business central, then select Dynamics 365 Business Central in the results.\n3. The Dynamics 365 Business Central page opens and shows all available triggers. For the example, select When a record is created (V3) to open the new flow.\n4. In the upper-left corner, replace the text Untitled with the name of your flow.\nYour flow looks similar to the following figure:\n![Shows the trigger called when a record is created (V3) in Power Automate.](https://learn.microsoft.com/dynamics365/business-central/dev-itpro/developer/media/power-automate-when-record-is created-trigger.png)\n3. Fill in the parameters to specify what the flow relates to. The parameters and whether they're required depend on the trigger.\n ![Shows the filled-in trigger called when a record is created (V3) in Power Automate.](https://learn.microsoft.com/dynamics365/business-central/dev-itpro/developer/media/power-automate-when-record-is created-trigger-example.png)\n Parameter|Description\n Environment name|Name of the Business Central environment that the flow runs on. The Business Central connector for Power Automate supports multiple production and sandbox environments. If you haven't created multiple production or sandbox environments, Production is the only available option you can choose.\n Company name|Name of Business Central company that the flow runs on\n API category|Name of the Business Central API category that runs the flow (also called API route)\n Table name|Name of the Business Central table that the flow runs on.\n4. Begin designing the flow by adding actions and more triggers. Start by selecting + New step.\n> NOTE\n> Because each step in the flow is independent of the next, you may be required to define the environment and company multiple times.\n5. Complete the following steps to add the action called Get url (V3). This action gets the web client page URL for the specified Business Central record, in this case, the customer card page 21.\n 1. In the Choose an operation step, select the Actions tab, then search for and select get url (v3) for the Dynamics 365 Business Central connector.\n 2. On the Get url (v3) step, set the Environment name and Company name to the same values as the When a record is created (V3) the trigger.\n 3. Set the Page to the ID of the page, in this case, 21.\n 4. Select the Row ID field to open the Dynamic content pane, then select RowID.\n The flow looks like this:\n ![Shows the action called Get record (V3) in Power Automate.]\n> IMPORTANT\n> The Get url (v3) action only works for Business Central version 22.0 and later.\n6. Repeat the previous step, except this time, add the action called Get adaptive card (v3). This action generates an adaptive card for the specified record that acts as a payload for input to Team.\n 1. Select + New step.\n 2. In the Choose an operation step, select the Actions tab, then search for and select get adaptive card (v3) for the Dynamics 365 Business Central connector.\n 3. On the Get adaptive card (v3) action, select the Url field to open the Dynamic content pane. Then, under Get url (V3), select Web Client URL.\n 4. On the Get adaptive card (v3) action, set the Target field to Teams.\n The flow looks like this:\n ![Shows the action called Post card to a chat or channel in Power Automate.]\n7. Add the final action that posts the card to a Teams channel.\n 1. Select + New step.\n 2. In the Choose an operation step, select the Actions tab, then search for and select post a card in a chat or channel for the Microsoft Teams connector.\n 3. On the Post a card in a chat or channel action, set the following fields:\n  Field|Value\n  -|-\n  Post as|User\n  Post in|Channel\n  Team|The team in Teams where you want to post the card\n  Channel|The team channel in Teams where you want to post the card\n  Adaptive card|Use dynamic content to set to Adaptive Card from the Get adaptive card (V3) action.\n  Subject|Optional text that appears above the card in Teams\n  The flow looks like this:\n  ![Shows the action called Post a message to a chat or channel in Power Automate.]\n8. Select Save.\n## Create a flow from a template\nMicrosoft also provides automated flow templates that you can use to build your own templates. The templates provide as fast way to create flows, but they're also a good way to learn how to build your own flows. Here's a list of some of the templates:\n When a vendor approval is requested\n When a general journal line approval is requested\n When a record is deleted\n When a record is changed\n When a record is created\n When a record is modified\n When a general journal batch approval is requested\n When a customer approval is requested\n When an item approval is requested\n When a purchase document approval is requested\n When a sales document approval is requested\n### Get started\n1. Add a new flow from Business Central or Power Automate:\n# From Business Central<#tab/bc>\nIn this way, you work only in Business Central, but you have the option during the setup to open the flow in Power Automate.\n1. Sign in to Business Central<https://businesscentral.microsoft.com>.\n2. Open the list, card, or document page.\n3. In the action bar, select Automate > Power Automate > Create automated flow.\n4. The Create a flow page opens and lists all the available Business Central templates related to the page. Select the template you want.\n> TIP\n> When you select a template, an introductory page explaining the template appears, letting you continue or go back.\n> By default, the Create a flow page is filtered to list only those templates that create automated flows. If you want a template that's not shown or want to find out what other templates are available, select Filtered templates > All templates to clear the filter or use the Search templates... box.\n# From Power Automate<#tab/pa>\n1. Sign in to Power Automate<https://powerautomate.com>.\n2. Select Create from the left side.\n3. Under Starting from a template, select All templates.\n4. In the search, type business central to get a list of all the available automated flow templates in the results.\n5. Select template to open the flow.\n1. Make changes to the flow, for example, by adding or changing steps. There are typically a few parameters that you need to fill in before saving the flow as one of your own.\n> NOTE\n> Because each step in the flow is independent of the next, you may have to define the environment and company multiple times\n1. Select Save when done.\n## Use the connector for other scenarios\nThe connectors<https://learn.microsoft.com/connectors/dynamicssmbsaas/> for Power Platform and Azure Logic Apps also support other scenarios. For example, use the https://learn.microsoft.com/connectors/dynamicssmbsaas/#find-records-(v3) action to create or edit table data for document headers or lines. You can also build a Power App that creates and posts time sheets, or a Power Automate flow that posts journal lines.\nThe Find records (V3) action finds records in the same way as ../webservices/use-filter-expressions-in-odata-uris. But it does so behind the scenes, so all you have to do is add the action as a step in your flow. See https://learn.microsoft.com/connectors/dynamicssmbsaas/#find-records-(v3).\n> NOTE\n> All the actions and triggers in the connector (except the ones related to approvals) support Business Central APIs coming from Marketplace extensions or from other extensions installed in your Business Central environment, provided that they follow the API best practices. See ../developer/devenv-develop-custom-api.\n## Related information\nmanage-power-automate-flows\nSet Up Instant Flows<instant-flows>\nTroubleshoot Your Business Central Automated Workflows</across-flow-troubleshoot>\nUse Business Central in an Automated Workflow</across-how-use-financials-data-source-flow>"}