You need to sign in to do that
Don't have an account?
paulie69
Describe question
I am trying to use describe to get layout information but I don't understand how to do it. I can get global and account but layout is elusive. Am I missing something in the docs?
regards,
Paul
Add the highlighted xml to your describe request, and you should be all set.
<soap:Body soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<q1:describe xmlns:q1="sfconnector:SalesforceConnector">
<type xsi:type="xsd:string">account</type>
<layout xsi:type="xsd:boolean">1</layout>
</q1:describe>
Another method to get the layout info is to make the following modification the wsdl. This modification will be in the 2.0 version of the wsdl near the end of the month.
Add a message part to the describe message for the layout parameter.
<message name="describe">
<part name="type" type="s:string" />
<part name="layout" type="s:boolean" />
</message>
After making this change, right click the web reference and select update. The proxy will now have an additional parameter for the layout option. The layout param is ignored for the "global" describe call.
Has there been a change on this? I can't seem to find any recent information on obtaining the page layout information through the describe call and the API documentation and WSDL appear to be out of sync. The parameter doesn't appear in the WSDL and I can't seem to get the suggestion below to work. Any help on this?
Regards,
David
Hi davek,
Nothing has changed with regards to the layout. If you can compose the following message, you will receive layout information on the response.
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:m0="salesforce">
<SOAP-ENV:Header>
<m:describe xmlns:m="sfconnector:SalesforceConnector">
<commonRequest xsi:type="m0:headerStruct">
<session_id xsi:type="xsd:string">eVNzJWoOEmMhL</session_id>
<version xsi:type="xsd:string">2.0</version>
</commonRequest>
</m:describe>
</SOAP-ENV:Header>
<SOAP-ENV:Body>
<m:describe xmlns:m="sfconnector:SalesforceConnector" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<type xsi:type="xsd:string">account</type>
<useCaseSafeIDs xsi:type="xsd:boolean">1</useCaseSafeIDs>
<layout xsi:type="xsd:boolean">1</layout>
</m:describe>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>