Activity › Forums › Salesforce® Discussions › How to query Custom setting in Apex in Salesforce? Salesforce® Discussions How to query Custom setting in Apex in Salesforce? Posted by MOHIT on September 4, 2020 at 10:02 AM How to query Custom setting in Apex in Salesforce? Ayush replied 5 years, 8 months ago 3 Members · 2 Replies 2 Replies Anjali Member September 4, 2020 at 10:11 AM You can query them like custom objects.Suppose you have a custom setting named as ‘Custom_Setting__c’ .So if you want it in your class then query it like [SELECT id, Name FROM Custom_Setting__c]. [adinserter block='9'] Ayush Member September 7, 2020 at 12:26 PM SELECT id, Name FROM Custom_Setting__c,, Log In to reply. Public All Members My Connections Only Me PublicAll MembersMy ConnectionsOnly Me Public All Members My Connections Only Me