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
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈