Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

PublishXml Message

CRM 1.2
banner art

Publish the customizations for the specified entities.

The relevant classes are specified in the following table.

Type Class
Request PublishXmlRequest
Response PublishXmlResponse


For a list of required privileges, see PublishXml Privileges.


The following code example shows how to use the PublishXml message.

// Set up the CRM Service.
CrmService service = new CrmService();
service.Credentials = System.Net.CredentialCache.DefaultCredentials;

// Create the request.
PublishXmlRequest request = new PublishXmlRequest();

request.ParameterXml = @"<importexportxml>

// Execute the request.
PublishXmlResponse response = (PublishXmlResponse)service.Execute(request);
[Visual Basic .NET]
' Set up the CRM Service.
Dim service As New CrmService()
service.Credentials = System.Net.CredentialCache.DefaultCredentials

' Create the request.
Dim request As New PublishXmlRequest()

request.ParameterXml = _
           "<importexportxml>" + _
           "<entities>" + _
              "<entity>account</entity>" + _
              "<entity>contact</entity>" + _
           "</entities>" + _
           "<nodes/>" + _

' Execute the request.
Dim response As PublishXmlResponse = CType(service.Execute(request), PublishXmlResponse)

Related Topics

CrmService Messages

© 2007 Microsoft Corporation. All rights reserved.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
© 2014 Microsoft. All rights reserved.