Partager via


IServiceEndpointNotificationService.Execute Method

Definition

Posts the execution context to the specified service endpoint in the cloud.

public:
 System::String ^ Execute(Microsoft::Xrm::Sdk::EntityReference ^ serviceEndpoint, Microsoft::Xrm::Sdk::IExecutionContext ^ context);
public string Execute (Microsoft.Xrm.Sdk.EntityReference serviceEndpoint, Microsoft.Xrm.Sdk.IExecutionContext context);
abstract member Execute : Microsoft.Xrm.Sdk.EntityReference * Microsoft.Xrm.Sdk.IExecutionContext -> string
Public Function Execute (serviceEndpoint As EntityReference, context As IExecutionContext) As String

Parameters

serviceEndpoint
EntityReference

The service endpoint to post to in the cloud.

context
IExecutionContext

The event execution context.

Returns

The result. Only a two-way or REST listener will return a string back to the caller.

Remarks

If the post fails, the IServiceEndpointNotificationService will continue to attempt the post for a pre-defined length of time. After all attempts to post have failed, the related asynchronous operation (system job) will be set to an error status.

Applies to

See also