I'm trying to prepare a package for use with the Metadata API, and basically I just need the information like the Label, Full Name, and so on, without the List Views, Custom Fields, and so on. Is there an easy way to export just the basic information for CustomObject? I need to do this for about 150 objects, and preferably in an automated manner, since I'll likely need to do this many different times.
Example desired result:
<?xml version="1.0" encoding="UTF-8"?>
<CustomObject xmlns="http://soap.sforce.com/2006/04/metadata">
<deploymentStatus>Deployed</deploymentStatus>
<description>test object with one field for eclipse ide testing</description>
<label>MyFirstObject</label>
<nameField>
<label>MyFirstObject Name</label>
<type>Text</type>
</nameField>
<pluralLabel>MyFirstObjects</pluralLabel>
<sharingModel>ReadWrite</sharingModel>
</CustomObject>
As far as I can tell, by default, when you mention a CustomObject in a package.xml, it includes all fields, list views, compact layouts, record types, search layouts, and so on, when I really just want the basic top-level details.
The purpose is that I want to be able to deploy the object's basic definitions, and then deploy a combination of custom fields as a separate deployment. We far more than the allowed 5,000 objects in the Metadata API, so we need to break the deployment into various pieces.