IServiceEndpointNotificationService.Execute Method (EntityReference, IExecutionContext)


Updated: November 29, 2016

Applies To: Dynamics 365 (online), Dynamics 365 (on-premises), Dynamics CRM 2016, Dynamics CRM Online

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

Namespace:   Microsoft.Xrm.Sdk
Assembly:  Microsoft.Xrm.Sdk (in Microsoft.Xrm.Sdk.dll)

string Execute(
	EntityReference serviceEndpoint,
	IExecutionContext context


Type: Microsoft.Xrm.Sdk.EntityReference

Type: EntityReference. The service endpoint to post to in the cloud.

Type: Microsoft.Xrm.Sdk.IExecutionContext

Type: IExecutionContext. The event execution context.

Return Value

Type: System.String

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

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.

Return to top

Microsoft Dynamics 365

© 2016 Microsoft. All rights reserved. Copyright