nerdexam
Microsoft

PL-400 · Question #339

You are creating an integration between Microsoft Dataverse and an external system. Messages from Dataverse must be sent to Microsoft Azure Service Bus. An Azure Function will process the messages…

The correct answer is A. RemoteExecutionContext. When Dataverse publishes messages to an Azure Service Bus endpoint via the ServiceEndpoint registration, the message payload is serialized as a RemoteExecutionContext object. This class contains the full execution context (entity data, user info, depth, correlation ID…

Submitted by jian89· Apr 18, 2026

Question

You are creating an integration between Microsoft Dataverse and an external system. Messages from Dataverse must be sent to Microsoft Azure Service Bus. An Azure Function will process the messages. Events must be published directly to the ServiceEndpoint for Azure Service Bus. You need to create code for the messages. Which class should you use?

Options

  • ARemoteExecutionContext
  • BIWorkflowContext
  • CIPluginExecutionContext
  • DIExecutionContext

How the community answered

(40 responses)
  • A
    78% (31)
  • B
    13% (5)
  • C
    3% (1)
  • D
    8% (3)

Explanation

When Dataverse publishes messages to an Azure Service Bus endpoint via the ServiceEndpoint registration, the message payload is serialized as a RemoteExecutionContext object. This class contains the full execution context (entity data, user info, depth, correlation ID, input/output parameters, etc.) and is specifically designed as the wire format for Dataverse-to-Service Bus integration. IPluginExecutionContext (C) is the interface used inside a plug-in to read context locally but is not the serialized contract sent over the wire. IWorkflowContext (B) is for workflow activities. IExecutionContext (D) is the base interface, not the concrete class used for Service Bus payloads.

Community Discussion

No community discussion yet for this question.

Full PL-400 Practice