Dela via


IServiceEndpointNotificationService.Execute Method (EntityReference, IExecutionContext)

 

Applies To: Dynamics CRM 2015

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
)
String^ Execute(
    EntityReference^ serviceEndpoint,
    IExecutionContext^ context
)
abstract Execute : 
        serviceEndpoint:EntityReference *
        context:IExecutionContext -> string
Function Execute (
    serviceEndpoint As EntityReference,
    context As IExecutionContext
) As String

Parameters

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

© 2016 Microsoft. All rights reserved. Copyright