IDiscoveryService.Execute Method (DiscoveryRequest)


Updated: November 29, 2016

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

Executes a discovery service message in the form of a request, and returns a response.

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

DiscoveryResponse Execute(
	DiscoveryRequest request


Type: Microsoft.Xrm.Sdk.Discovery.DiscoveryRequest

Type: DiscoveryRequest. A request instance that defines the action to be performed.

Return Value

Type: Microsoft.Xrm.Sdk.Discovery.DiscoveryResponse

Type: DiscoveryResponse.
The response from processing the request. You must cast the return value of this method to the specific instance of the response that corresponds to the Request parameter.

Privileges and Access Rights

To execute a message, the caller must have a system user account on the Microsoft Dynamics 365 server.

Method Availability

This method works only when connected to the server.

Return to top

Microsoft Dynamics 365

© 2016 Microsoft. All rights reserved. Copyright