ServiceClient.ExecuteOrganizationRequest Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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.