Study FAQ
How do I register a Dataverse event destination and decide when it receives notifications?
Also asked as 2
- How do I configure a service endpoint and event step in the Plug-in Registration Tool?
- When does Dataverse need a custom plug-in to notify a registered endpoint?
Answer
Register the destination and the event condition as separate objects in the Plug-in Registration Tool. The endpoint describes where context goes and how Dataverse authenticates to the destination. The message-processing step specifies the message, table, stage, execution mode, and any filtering attributes.
- In a development environment, provision a permitted Azure endpoint or authenticated HTTPS receiver. Select its documented contract, authentication, and payload format.
- Attach a step to that endpoint. For an external projection of a committed status change, a reasonable starting registration is
Updateon the exact table with the status column as a filtering attribute, PostOperation and Asynchronous. A filter tests whether the attribute is submitted, so test an unchanged submitted value too. Keep the primary key out of the filter. - Use the platform's endpoint step to forward context directly. If code must decide whether to notify, register the endpoint first and call
IServiceEndpointNotificationServicefrom a plug-in with the registered endpoint reference and current execution context. Review the host step's stage, mode, run-as setting, and order. Assign one publication owner for each intended notification.
Trigger an eligible and unrelated update using synthetic records. Check the asynchronous job, actual receipt, and observed processing. An endpoint registration alone subscribes to no table changes.
Microsoft references
Full explanation
AB-400: Publishing Dataverse Events to External Services
Study guide · AB-400
Read the full explanation