IDiscoveryService.Execute Method (DiscoveryRequest)


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
Function Execute (
    request As DiscoveryRequest
) As DiscoveryResponse


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.

See Also

IDiscoveryService Interface
Microsoft.Xrm.Sdk.Discovery Namespace
Discovery service messages (request and response classes)
Sample: Access the Discovery service
Handle exceptions in your code

Return to top

Microsoft Dynamics 365

© 2016 Microsoft. All rights reserved. Copyright