FlowEnvironmentId Property

Version: Available or changed with runtime version 10.0.

Sets the ID of the environment where the Power Automate Flow triggered by this action is located.

Applies to

  • Page Custom Action

Remarks

You can get the flow environment ID in Power Automate. Sign in to Power Automate 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>.

To learn more about Power Automate flows with Business Central, see Power Automate Integration Overview.

Example

The following example extends the Customer Card page with a promoted action that runs a Power Automate flow that has the flow environment ID Default-44444444-cccc-5555-dddd-666666666666.

pageextension 50100 CustomerCardExt extends "Customer Card"
{
    actions
    {
        
        addlast(processing)
        {
            customaction(MyFlowAction)
            {
                ApplicationArea = All;
                CustomActionType = Flow;
                FlowId = '11111111-aaaa-2222-bbbb-333333333333';
                FlowEnvironmentId = 'Default-44444444-cccc-5555-dddd-666666666666';
            }
        }
        addfirst(Promoted)
        {
            actionref(MyFlowPromoted; MyFlowAction)
            {
            }
        }

    }
}

See Also

Getting Started with AL
Developing Extensions