{"title":"FlowEnvironmentId Property","url":"https://jonas-paprotka.de/docs/dev-itpro/developer/properties/devenv-flowenvironmentid-property/","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/developer/properties/devenv-flowenvironmentid-property, 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/developer/properties/devenv-flowenvironmentid-property","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":"Sets the ID of the environment where the Power Automate Flow triggered by this action is located.","date":"2026-10-01","meta":{"topic":"reference"},"outline":[{"level":2,"title":"Applies to","slug":"applies-to","at":159,"chars":34},{"level":2,"title":"Remarks","slug":"remarks","at":193,"chars":483},{"level":2,"title":"Example","slug":"example","at":676,"chars":771},{"level":2,"title":"Related information","slug":"related-information","at":1447,"chars":115}],"text":"> Version: _Available or changed with runtime version 10.0._\nSets the ID of the environment where the Power Automate Flow triggered by this action is located.\n## Applies to\n Page Custom Action\n## Remarks\nYou can get the flow environment ID in Power Automate. Sign in to Power Automate<https://powerautomate.com> and open the flow for editing. Then, get the flow environment ID from the URL in the browser address, which has a format like: `https://make.powerautomate.com/environments/<environment ID>/flows/<environment ID>`.\nTo learn more about Power Automate flows with Business Central, see Power Automate Integration Overview<../../powerplatform/power-automate-overview>.\n## Example\nThe following example extends the Customer Card page with a promoted action that runs a Power Automate flow that has the flow environment ID `Default-44445555-eeee-6666-ffff-7777aaaa8888`.\n```al\npageextension 50100 CustomerCardExt extends \"Customer Card\"\n{\n    actions\n    {\n\n        addlast(processing)\n        {\n            customaction(MyFlowAction)\n            {\n                ApplicationArea = All;\n                CustomActionType = Flow;\n                FlowId = '00001111-aaaa-2222-bbbb-3333cccc4444';\n                FlowEnvironmentId = 'Default-44445555-eeee-6666-ffff-7777aaaa8888';\n            }\n        }\n        addfirst(Promoted)\n        {\n            actionref(MyFlowPromoted; MyFlowAction)\n            {\n            }\n        }\n\n    }\n}\n```\n## Related information\nGetting Started with AL<../devenv-get-started>\nDeveloping Extensions<../devenv-dev-overview>"}