IWebHttpServiceEndpointPlugin.Execute(RemoteExecutionContext) IWebHttpServiceEndpointPlugin.Execute(RemoteExecutionContext) IWebHttpServiceEndpointPlugin.Execute(RemoteExecutionContext) IWebHttpServiceEndpointPlugin.Execute(RemoteExecutionContext) Method

Definition

Executes plug-in code in response to an event.

public:
 System::String ^ Execute(Microsoft::Xrm::Sdk::RemoteExecutionContext ^ executionContext);
[System.ServiceModel.FaultContract(typeof(Microsoft.Xrm.Sdk.ServiceEndpointFault))]
[System.ServiceModel.OperationContract]
[System.ServiceModel.Web.WebInvoke(Method="POST")]
public string Execute (Microsoft.Xrm.Sdk.RemoteExecutionContext executionContext);
abstract member Execute : Microsoft.Xrm.Sdk.RemoteExecutionContext -> string
Public Function Execute (executionContext As RemoteExecutionContext) As String

Parameters

executionContext
RemoteExecutionContext RemoteExecutionContext RemoteExecutionContext RemoteExecutionContext

Type: RemoteExecutionContext. Defines the contextual information passed to a plug-in at run-time.

Returns

Type: String The response from the request.

Remarks

The return value is sent back to Microsoft Dynamics 365 over the service bus and received by the plug-in that initiated the original service bus post.

The execution context is posted on the Microsoft Azure Service Bus by Microsoft Dynamics 365 and made available to the listener in the execution context parameter.

Applies to