Bemærk
Adgang til denne side kræver godkendelse. Du kan prøve at logge på eller ændre mapper.
Adgang til denne side kræver godkendelse. Du kan prøve at ændre mapper.
Note
Community interest groups have now moved from Yammer to Microsoft Viva Engage. To join a Viva Engage community and take part in the latest discussions, fill out the Request access to Finance and Operations Viva Engage Community form and choose the community you want to join.
In Microsoft Power Automate, you can use the finance and operations connector and the Microsoft Dataverse connector to consume business events. The finance and operations connector includes the When a Business Event occurs trigger. The Dataverse connector includes the When an action is performed trigger. Use either trigger to subscribe to any business event that's available in finance and operations apps. Both triggers provide the same functionality, but the execution is slightly different.
The Dataverse connector also lets you use the When a row is added, modified, or deleted trigger to subscribe to data events in finance and operations apps. This trigger enables a Power Automate flow to be triggered by any create, update, or delete (CUD) event against a selected finance and operations apps entity.
Prerequisite
It's important that you understand business events. For more information, see the Business events documentation.
Subscribing to business events
Using the finance and operations connector
The finance and operations connector communicates directly with finance and operations apps to establish subscriptions, but Dataverse triggers it at runtime. The connector can connect to any instance of finance and operations apps on the Microsoft Entra tenant.
After you add the When a Business Event occurs trigger to a flow, provide the following information:
- Instance – Specify the host name of the instance where business events occur. The drop-down menu shows environment instances, but if an environment isn't listed, enter it as a custom value.
- Category – Select the category of business events. You see the list of unique business event categories in the business event catalog in finance and operations apps.
- Business event – Select the business event that the flow triggers from. All the business events that are shown in the list are business events in the selected category in the finance and operations apps business event catalog.
- Legal entity – Specify the legal entity where you want to subscribe to the business event. The flow triggers when the business event occurs in that legal entity. By default, this field is blank and the business event is subscribed to in all legal entities.
When you save the flow, you add a subscription to the selected business event into the environment instance. As part of the subscription process, the required endpoint is set up, and the corresponding business event is activated.
Using the Dataverse connector
Finance and operations apps expose business events through the When an action is performed trigger of the Dataverse connector. This trigger exposes actions and table operations that you configure in Dataverse by using the Catalog and CatalogAssignment tables. This configuration provides a more generic business event framework in Dataverse that isn't limited to finance and operations apps business events. The finance and operations apps business event catalog synchronizes business events with the Dataverse business events catalog. Therefore, you can subscribe to finance and operations apps business events to initiate business logic in a Power Automate flow. For more information about the catalog in the Dataverse business events framework, see Catalog and CatalogAssignment tables.
To use the finance and operations apps business events in the When an action is performed trigger of the Dataverse connector, enable the Microsoft Power Platform integration for the finance and operations apps environment. This integration connects the finance and operations apps environment to the Dataverse environment. For more information about how to enable the Microsoft Power Platform integration for finance and operations apps environments, see Enabling the Microsoft Power Platform integration.
Note
The Microsoft Power Platform integration has a one-to-one connection between finance and operations apps and the Microsoft Power Platform environment. Because of this relationship, you can't select among multiple finance and operations apps environments as the When a Business Event occurs trigger of the finance and operations connector does. The trigger automatically connects to the finance and operations apps environment that you select for the Microsoft Power Platform integration.
After you add the When an action is performed trigger to a flow in Power Automate, provide the following information:
- Catalog – Select Finance and operations. This selection exposes finance and operations business events as a Dataverse business events catalog.
- Category – Select the category of the desired business event. The list shows unique business event categories in the business event catalog in finance and operations apps.
- Table name – If the action is related to a specific table, select the related table. Typically, the value is (none) for finance and operations apps business events.
- Action name – Select the action or business event that the flow should trigger from. The drop-down list shows all synchronized business events in the selected category in the finance and operations apps business event catalog.
For more information about how to use the When an action is performed trigger in Power Automate, see Trigger flows with actions.
Note
Don't manually configure the Power Automate endpoint. Power Automate automatically creates the endpoint as described earlier.
Subscribing to data events
The When a row is added, modified, or deleted trigger in the Dataverse connector includes finance and operations apps entities that you enable as virtual entities in Dataverse. When you add this trigger to a flow in Power Automate, enter the table name for the table that you want to trigger the flow. The Table name list shows all finance and operations apps entities that appear as virtual entities in Dataverse from the finance and operations apps environment that you connect to the Microsoft Power Platform environment through the Microsoft Power Platform integration. For information about how to enable virtual entities, see Enable Dataverse virtual entities.
Note
Enter mserp in the Table name field to filter the list of tables so it shows only the available finance and operations apps virtual entities that are enabled for your environment.
For more information about how to use the When a row is added, modified, or deleted trigger in the Dataverse connector, including information about advanced options, see Trigger flows when a row is added, modified, or deleted.
Unsubscribing from business events
If you delete the trigger or turn off the flow, the business event endpoint is automatically deleted.
Adjusting flow parameter limits
Multiple flows can subscribe to the same business event in different legal entities or in the same legal entity. The default endpoint limit per event is 10. You can adjust the Endpoints allowed per event setting on the Business event parameters page as needed.
Other ways to consume business events in Power Automate
The previous section explains how you can subscribe to business events directly from Power Automate by using the trigger in the connector. However, you can also consume business events in Microsoft Power Automate from Microsoft Azure Event Grid, by using the Event Grid connector for Microsoft Power Automate.
Event Grid might be a viable approach for consuming business events in Power Automate if it's already being used for other integrations in an implementation. If a business event in the same legal entity must trigger multiple flows, consider consuming the business event from Event Grid.
This approach is applicable to any messaging or event platform that is used as an endpoint for business events, provided that a connector is available for it in Power Automate.
For information about how to use business events in Microsoft Flow, see Consume business events in Microsoft Flow.