Activity › Forums › Salesforce® Discussions › How to get all fields for custom object in Salesforce? Salesforce® Discussions How to get all fields for custom object in Salesforce? Posted by Deepak on October 20, 2020 at 5:12 PM How to get all fields for custom object in Salesforce? Anuj replied 5 years, 7 months ago 2 Members · 1 Reply 1 Reply Anuj Member October 22, 2020 at 12:31 PM You can use Dynamic Apex to perform describe call on object for which you want to get meta-data as described in below example: List<String> fields = new List<String>(); fields. Log In to reply. Public All Members My Connections Only Me PublicAll MembersMy ConnectionsOnly Me Public All Members My Connections Only Me