OrganizationServiceProxy.Execute Method (OrganizationRequest)
Applies To: Dynamics CRM 2015
Executes a message in the form of a request, and returns a response.
Namespace: Microsoft.Xrm.Sdk.Client
Assembly: Microsoft.Xrm.Sdk (in Microsoft.Xrm.Sdk.dll)
Syntax
public OrganizationResponse Execute(
OrganizationRequest request
)
public:
virtual OrganizationResponse^ Execute(
OrganizationRequest^ request
) sealed
abstract Execute :
request:OrganizationRequest -> OrganizationResponse
override Execute :
request:OrganizationRequest -> OrganizationResponse
Public Function Execute (
request As OrganizationRequest
) As OrganizationResponse
Parameters
request
Type: Microsoft.Xrm.Sdk.OrganizationRequestType: OrganizationRequest. An instance of a request class that defines the action to be performed.
Return Value
Type: Microsoft.Xrm.Sdk.OrganizationResponse
Type: OrganizationResponse.
You must cast the return value of this method to the specific instance of the response that corresponds to the Request parameter.
Implements
IOrganizationService.Execute(OrganizationRequest)
Remarks
The core implementation of the Execute method. For more information, see IOrganizationService.Execute.
For more information about the exceptions that can be thrown when calling OrganizationServiceProxy methods, see Handle exceptions in your code.
See Also
OrganizationServiceProxy Class
Microsoft.Xrm.Sdk.Client Namespace
Troubleshooting and error handling
Use the IOrganizationService web service to read and write data or metadata
Use messages (request and response classes) with the Execute method
Return to top
© 2016 Microsoft. All rights reserved. Copyright