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
MubarakMubarak 

Metadata for Object???

Hi all,

How to retrive the metadata for objects and fields???

Thanks
salesforce mesalesforce me
hi

https://na1.salesforce.com/services/data/v20.0/Account/describe/ -H "Authorization: Bearer token"
 
{
    "name" : "Account",
    "fields" : 
    [ 
        {  
            "length" : 18,  
            "name" : "Id",  
            "type" : "id",  
            "defaultValue" : {    "value" : null  },  
            "updateable" : false,  
            "label" : "Account ID",  
            ...
        },

        ...

    ],


    "updateable" : true,
    "label" : "Account",
    "keyPrefix" : "001",
    "custom" : false,

    ...

    "urls" : 
    {  
        "uiEditTemplate" : "https://na1.salesforce.com/{ID}/e",  
        "sobject" : "/services/data/v20.0/sobjects/Account",  
        "uiDetailTemplate" : "https://na1.salesforce.com/{ID}",  
        ...
    },

    "childRelationships" : 
    [ 
        {  
            "field" : "ParentId",  
            "deprecatedAndHidden" : false,  
            ...
        }, 

        ....

    ],

    "createable" : true,
    "customSetting" : false,
    ...
}

 
MubarakMubarak
Hi,
Where i can get these info.It is in JSON i want in XML

thanks