We can write SOQL query on ApexComponent
object to get all Visualforce Page Components from an Org.
Sample SOQL:
SELECT Name, MasterLabel, ApiVersion, CreatedDate FROM ApexComponent
We can write SOQL query on ApexPage
object to get all Visualforce Pages from an Org.
Sample SOQL:
SELECT Name, MasterLabel, ApiVersion, CreatedDate FROM ApexPage
We can write SOQL query on ApexClass
object to get all classes from an Org.
Sample SOQL:
SELECT Name, Status, ApiVersion, CreatedDate FROM ApexClass
We can write SOQL query on ApexTrigger
object to get all triggers from an Org.
Sample SOQL:
SELECT Name, TableEnumOrId, ApiVersion, Status, CreatedDate FROM ApexTrigger
Sample Code:
List<Account> accList = New List<Account>();
accList = [SELECT Id FROM Account WHERE IsDeleted =: true ALL ROWS];
Undelete accList;