You need to sign in to do that
Don't have an account?
Layout definition
Hi
Is there an api to get all layout description and not only the one attached to my profile (current function describeLayout) ?
With metadata api I can have list of layouts and Id but I could not find the api or function that gives me definition of a given layout (thanks to its id) or all layout (event the one not attached to my profile)
In Eclipse, I can get all layout definition
<?xml version="1.0" encoding="UTF-8"?>
<Layout xmlns="http://soap.sforce.com/2006/04/metadata">
<emailDefault>false</emailDefault>
<headers>PersonalTagging</headers>
<headers>PublicTagging</headers>
<layoutSections>
<customLabel>false</customLabel>
<detailHeading>false</detailHeading>
<editHeading>true</editHeading>
<label>Account Information</label>
<layoutColumns>
<layoutItems>
<behavior>Edit</behavior>
<field>OwnerId</field>
</layoutItems>
....
Thanks for your help
Regards
Hey Alex,
I found the following links to possible solutions, go through when you get a chance:
http://stackoverflow.com/questions/9949078/can-i-access-all-page-layouts-specific-to-an-object-via-the-salesforce-api
http://stackoverflow.com/questions/14607749/how-to-retrieve-salesforce-page-layout-field-properties-via-api
All Answers
Hey Alex,
I found the following links to possible solutions, go through when you get a chance:
http://stackoverflow.com/questions/9949078/can-i-access-all-page-layouts-specific-to-an-object-via-the-salesforce-api
http://stackoverflow.com/questions/14607749/how-to-retrieve-salesforce-page-layout-field-properties-via-api
Hi
Thanks for your research
The only solution to get layout definition is to retrieve layout list thanks to list medatata then retrieve zip file of a given layout which is not very convenient
Nevertheless it seems to be the only solution
Regards
Alex