PublishXmlRequest PublishXmlRequest PublishXmlRequest PublishXmlRequest Class


Contains the data that is needed to publish specified solution components.

For the Web API use the PublishXml Action.

public ref class PublishXmlRequest sealed : Microsoft::Xrm::Sdk::OrganizationRequest
public sealed class PublishXmlRequest : Microsoft.Xrm.Sdk.OrganizationRequest
type PublishXmlRequest = class
    inherit OrganizationRequest
Public NotInheritable Class PublishXmlRequest
Inherits OrganizationRequest


// Use UpdateOptionSetRequest to update the basic information of an option
// set. Updating option set values requires different messages (see below).
var updateOptionSetRequest = new UpdateOptionSetRequest
    OptionSet = new OptionSetMetadata
        DisplayName = new Label("Updated Option Set", _languageCode),
        Name = _globalOptionSetName,
        IsGlobal = true
//Publish the OptionSet
var pxReq1 = new PublishXmlRequest { ParameterXml = String.Format("{0}", _globalOptionSetName) };


Message Availability

For this message to work, the caller must be connected to the server.


Pass an instance of this class to the Execute(OrganizationRequest) method, which returns an instance of PublishXmlResponse.

Privileges and Access Rights

To perform this action, the caller must have privileges listed in PublishXml message privileges.

Notes for Callers

Use this message to publish a specified subset of solution components. See ParameterXml for details about how to specify the solution components to publish.


PublishXmlRequest() PublishXmlRequest() PublishXmlRequest() PublishXmlRequest()

Initializes a new instance of the PublishXmlRequest class


ExtensionData ExtensionData ExtensionData ExtensionData

Gets or sets the structure that contains extra data. Optional.

(Inherited from OrganizationRequest)
Item[String] Item[String] Item[String] Item[String]

Gets or sets the indexer for the Parameters collection.

(Inherited from OrganizationRequest)
Parameters Parameters Parameters Parameters

Gets or sets the collection of parameters for the request. Required, but is supplied by derived classes.

(Inherited from OrganizationRequest)
ParameterXml ParameterXml ParameterXml ParameterXml

Gets or sets the XML that defines which solution components to publish in this request. Required.

RequestId RequestId RequestId RequestId

Gets or sets the ID of an asynchronous operation (system job). Optional.

(Inherited from OrganizationRequest)
RequestName RequestName RequestName RequestName

Gets or sets the name of the request. Required, but is supplied by derived classes.

(Inherited from OrganizationRequest)

Applies to

See also