I am following the post "Change Page Layout of objects using Meta data API in apex" and trying to update the existing pagelayout with multiple custom fields.

I am able to create a new section and add the field there but my requirement is " Add Multiple custom fields in the existing section say for Account Object page layout".

can anyone please help me with code snippet.

  • @andrefowcett , I saw the method addFieldToLayout() which is used to insert the field onto a new section in the existing PageLayout. Could you please tell, how can I add the field on the existing Section not in the new section .Also how to add more that one field on an existing section. Jul 30, 2014 at 13:27


You must log in to answer this question.

Browse other questions tagged .