Export (0) Print
Expand All

PublishXml Message

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.

© 2016 Microsoft