PartnerDescribeSObject

Sample Request Message-describeSObject Call-Partner API

POST https://na1.salesforce.com/services/Soap/u/10.0 HTTP/1.1 
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; MS Web Services Client Protocol
1.1.4322.573) 
Content-Type: text/xml; charset=utf-8  
SOAPAction: "" 
Content-Length: 510 
Expect: 100-continue 
Host: na1.salesforce.com 

<?xml version="1.0" encoding="utf-8"?>   
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
  xmlns:urn="urn:partner.soap.sforce.com">
  <soapenv:Header>
     <urn:SessionHeader>
        <urn:sessionId>QwWsHJyTPW.1pd0_jXlNKOSU</urn:sessionId>
     </urn:SessionHeader>
  </soapenv:Header>
  <soapenv:Body>
     <urn:describeSObject>
        <urn:sObjectType>Account</urn:sObjectType>
     </urn:describeSObject>
  </soapenv:Body>
</soapenv:Envelope>

Sample Response Message-describeSObject Call-Partner API

HTTP/1.1 200 OK 
Server: sfdc 
Content-Type: text/xml; charset=utf-8 
Transfer-Encoding: chunked 
Date: Tue, 29 May 2007 22:43:24 GMT
  
<?xml version="1.0" encoding="utf-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
  xmlns="urn:partner.soap.sforce.com">
  <soapenv:Body>
     <describeSObjectResponse>
        <result>
           <activateable>false</activateable>
           <childRelationships>
              <cascadeDelete>false</cascadeDelete>
              <childSObject>Account</childSObject>
              <field>ParentId</field>
           </childRelationships>
           .
           .
           .
           <createable>true</createable>
           <custom>false</custom>
           <deletable>true</deletable>
           <fields>
              <autoNumber>false</autoNumber>
              <byteLength>18</byteLength>
              <calculated>false</calculated>
              <caseSensitive>false</caseSensitive>
              <createable>false</createable>
              <custom>false</custom>
              <defaultedOnCreate>true</defaultedOnCreate>
              <digits>0</digits>
              <filterable>true</filterable>
              <idLookup>true</idLookup>
              <label>Account ID</label>
              <length>18</length>
              <name>Id</name>
              <nameField>false</nameField>
              <namePointing>false</namePointing>
              <nillable>false</nillable>
              <precision>0</precision>
              <restrictedPicklist>false</restrictedPicklist>
              <scale>0</scale>
              <soapType>tns:ID</soapType>
              <sortable>true</sortable>
              <type>id</type>
              <unique>false</unique>
              <updateable>false</updateable>
           </fields>
           .
           .
           .            
           <fields>
              <autoNumber>false</autoNumber>
              <byteLength>120</byteLength>
              <calculated>false</calculated>
              <caseSensitive>false</caseSensitive>
              <createable>true</createable>
              <custom>false</custom>
              <defaultedOnCreate>false</defaultedOnCreate>
              <digits>0</digits>
              <filterable>true</filterable>
              <idLookup>false</idLookup>
              <label>Account Type</label>
              <length>40</length>
              <name>Type</name>
              <nameField>false</nameField>
              <namePointing>false</namePointing>
              <nillable>true</nillable>
              <picklistValues>
                 <active>true</active>
                 <defaultValue>false</defaultValue>
                 <label>Analyst</label>
                 <value>Analyst</value>
              </picklistValues>
              <picklistValues>
                 <active>true</active>
                 <defaultValue>false</defaultValue>
                 <label>Competitor</label>
                 <value>Competitor</value>
              </picklistValues>
              .
              .
              .
              <precision>0</precision>
              <restrictedPicklist>false</restrictedPicklist>
              <scale>0</scale>
              <soapType>xsd:string</soapType>
              <sortable>true</sortable>
              <type>picklist</type>
              <unique>false</unique>
              <updateable>true</updateable>
           </fields>
           <keyPrefix>001</keyPrefix>
           <label>Account</label>
           <labelPlural>Accounts</labelPlural>
           <layoutable>true</layoutable>
           <mergeable>true</mergeable>
           <name>Account</name>
           <queryable>true</queryable>
           <recordTypeInfos>
              <available>true</available>
              <defaultRecordTypeMapping>true</defaultRecordTypeMapping>
              <name>Master</name>
              <recordTypeId>012000000000000AAA</recordTypeId>
           </recordTypeInfos>
           <replicateable>true</replicateable>
           <retrieveable>true</retrieveable>
           <searchable>true</searchable>
           <undeletable>true</undeletable>
           <updateable>true</updateable>
           <urlDetail>https://na1.salesforce.com/{ID}</urlDetail>
           <urlEdit>https://na1.salesforce.com/{ID}/e</urlEdit>
           <urlNew>https://na1.salesforce.com/001/e</urlNew>
        </result>
     </describeSObjectResponse>
  </soapenv:Body>
</soapenv:Envelope>

Back to Sample SOAP Messages