Partager via


ServiceClient.ExecuteOrganizationRequest Method

Definition

Executes a Dataverse Organization Request (thread safe) and returns the organization response object. Also adds metrics for logging support.

public Microsoft.Xrm.Sdk.OrganizationResponse ExecuteOrganizationRequest (Microsoft.Xrm.Sdk.OrganizationRequest req, string logMessageTag = "User Defined", bool useWebAPI = false);
member this.ExecuteOrganizationRequest : Microsoft.Xrm.Sdk.OrganizationRequest * string * bool -> Microsoft.Xrm.Sdk.OrganizationResponse
Public Function ExecuteOrganizationRequest (req As OrganizationRequest, Optional logMessageTag As String = "User Defined", Optional useWebAPI As Boolean = false) As OrganizationResponse

Parameters

req
OrganizationRequest

Organization Request to run

logMessageTag
String

Message identifying what this request in logging.

useWebAPI
Boolean

When True, uses the webAPI to execute the organization Request. This works for only Create at this time.

Returns

Result of request or null.

Applies to