Get Interface Class List from SOQL

ApexTypeImplementor Object: Get the list of all classes which implement a particular interface with the help of ApexTypeImplementor object.


List<ApexTypeImplementor> lstofbatchclass =[SELECT Id,ClassName FROM ApexTypeImplementor WHERE InterfaceName = 'Batchable'];



https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_apextypeimplementor.htm

Comments

Popular Post

Get the record Count of all countable Sobjects in Salesforce

Fetch record type-specific picklist values directly in Apex

Fetch Picklist value in LWC using Schema class