function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Venkata ChavaliVenkata Chavali 

Schema Extraction Salesforce IDE

Hi All
I am trying to extract the Salesforce schema from the IDE but having little success.
I've seen posts that say you can export as an archive. I have tried this but all I get is a file with the words "place holder" in it.
I can see in the IDE all of the information I want to get at..... xml format is fine.
If the IDE can pull all the info togther to display it there must be a way to either extract it or run a query to get the same information.
All help gratefully recieved
Thanks in advance
User-added image
KevlangdoKevlangdo
What version of the IDE are you using
Venkata ChavaliVenkata Chavali
Force.com IDE v38.0
KevlangdoKevlangdo
right click on the root of your project in the package explorer and select Export. Choose the XML template
Venkata ChavaliVenkata Chavali
Hi 
I've tried that and selcted the XML-> "xml catalog" option ( which is the only xml option I see).
The file produced just has the following content.

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog"/>

I'm confused but all help greatfully recieved
Cheers
 
Venkata ChavaliVenkata Chavali
Can Anyone help me with this issue.
Many thanks in adavnce
 
KevlangdoKevlangdo
Venkata,
Instead of using the IDE, why don't you try the Workbench
https://workbench.developerforce.com/login.php

From the Migration , Retrieve menu you can retrieve the schemas as an xml document using the Metadata API. Simply create a generalized package.xml for all the objects you want to export. I use this format on a regular basis to modify or create new objects. You can fond more information here:
https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/manifest_samples.htm
 
<?xml version="1.0" encoding="UTF-8"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
    <types>
        <members>*</members>
        <name>CustomObject</name>
    </types>
    <types>
        <members>*</members>
        <name>Permissionset</name>
    </types>
    <version>41.0</version>
</Package>

 
Venkata ChavaliVenkata Chavali
Hi Kevlangdo,
I've done that as well but it doesn't give me all the information I would lilke.
For example 
<types>
        <members>Account</members>
        <members>AccountContactRole</members>
        <members>Activity</members>
        <members>Asset</members>
For Account if I look at the object file created I don't get the list full fields or their types or type or length or the joins to other objects.
It's more about the Application metadata not the schema metadata.
I'm really after the infomration that I see in IDE. 
Cheers

User-added image