This question already has an answer here:

I want to query newly created fields(Metadata) in the contact object where day = Today().

Is this possible in Salesforce?

marked as duplicate by Raul, battery.cord, Santanu Boral, Tushar Sharma, Martin Lezer Jun 9 '17 at 13:53

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.


Querying metadata level information is not yet possible natively in SOQL or Apex.

You can use Apex Wrapper for the Salesforce Metadata API by Andrew Fawcett. With that it should be possible.

Not the answer you're looking for? Browse other questions tagged or ask your own question.