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
sauravsharma001sauravsharma001 

Can I get the list of fields present in a page layout for Case Object in apex class?

Sonam_SFDCSonam_SFDC

Saurav,

 

You can use the DescribeLayout call to get the meta of a pagelayout:

http://www.salesforce.com/us/developer/docs/api/Content/sforce_api_calls_describelayout.htm

 

Hope this helps!

sauravsharma001sauravsharma001

@Sonam This is useful but can only be implemented in java. I need something like that for apex.