Santosh
Santosh

Reputation: 11

How to export the CRM customization programmatically

How can we export the customization of all the entities programmatically .

Or get the metadata of the Entity forms dynamically

Upvotes: 1

Views: 689

Answers (1)

Matt
Matt

Reputation: 4686

Here's a sample from the SDK:

// Set up the CRM Service.
CrmAuthenticationToken token = new CrmAuthenticationToken();
// You can use enums.cs from the SDK\Helpers folder to get the enumeration for Active Directory authentication.
token.AuthenticationType = 0; 
token.OrganizationName = "AdventureWorksCycle";

CrmService service = new CrmService();
service.Url = "http://<servername>:<port>/mscrmservices/2007/crmservice.asmx";
service.CrmAuthenticationTokenValue = token;
service.Credentials = System.Net.CredentialCache.DefaultCredentials;

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

// Execute the request.
ExportAllXmlResponse response = (ExportAllXmlResponse)service.Execute(request);

Upvotes: 1

Related Questions