IServiceEndpointNotificationService.Execute Method (EntityReference, IExecutionContext)
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)
Syntax
string Execute(
EntityReference serviceEndpoint,
IExecutionContext context
)
Function Execute (
serviceEndpoint As EntityReference,
context As IExecutionContext
) As String
Parameters
serviceEndpoint
Type: Microsoft.Xrm.Sdk.EntityReferenceType: EntityReference. The service endpoint to post to in the cloud.
context
Type: Microsoft.Xrm.Sdk.IExecutionContextType: 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.
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.
See Also
IPluginExecutionContext
IServiceEndpointNotificationService Interface
Microsoft.Xrm.Sdk Namespace
Manage of run-time errors
Write a one-way, two-way, or REST listener
Return to top
Microsoft Dynamics 365
© 2016 Microsoft. All rights reserved. Copyright