FlowId Property

Version: Available or changed with runtime version 10.0.

Sets the ID of the Power Automate Flow triggered by this action.

Applies to

  • Page Custom Action

Remarks

You can get the flow ID in Power Automate. Sign in to Power Automate and open the flow for editing. Then, get the flow 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 Cutomer Card page with a promoted action that runs a Power Automate flow that has the flow ID 11111111-aaaa-2222-bbbb-333333333333.

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