A plug-in on the opportunity table must post the execution context to an Azure Service Bus queue already registered as a service endpoint, but only when the estimated revenue exceeds a threshold stored in an environment variable. The team wants the platform's own posting mechanism rather than custom HTTP calls. How should the developer implement this?
Select an answer to reveal the explanation.
Short Explanation
Think of the notification service as the plug-in's built-in mail slot to Azure: you decide whether to drop the letter, then the platform delivers it. Filtering attributes only say which columns changed, not how big the number is. Rolling your own HTTP call skips the platform's retry and system job tracking.
Full Explanation
An Azure-aware custom plug-in obtains IServiceEndpointNotificationService from the service provider and calls its Execute method with an EntityReference to the registered service endpoint and the current execution context. Because the call happens inside plug-in code, the plug-in can first read the environment variable, compare it with the estimated revenue, and post only when the condition is true. The asynchronous service then performs the post as a system job, so status and retries are visible like any other posting. A step registered directly on the service endpoint posts every time the message fires; filtering attributes restrict an Update step to changes in specific columns and cannot evaluate a value against a threshold. Sending JSON through HttpClient with a connection string bypasses the platform's posting, puts secrets in plug-in code, and loses the remote execution context format and system job tracking. IOrganizationService executes Dataverse messages; there is no organization request that posts to a service endpoint by name. Exam caveat: register the plug-in step asynchronously for best performance unless the caller truly needs the post inside the transaction. Operational check: update one opportunity above and one below the threshold and confirm only one message arrives on the queue.