Use SOQL in Apex #inSalesforce
Public class exampleQueries{
public static void getAccounts(){
List<Account> accountRecords = [Select Id, Name from Account];
system.debug('!!!the accounts are!!!'+accountRecords);
}
}
public static void getAccounts(){
List<Account> accountRecords = [Select Id, Name from Account];
system.debug('!!!the accounts are!!!'+accountRecords);
}
}
Update the filter criteria as per need to return the records as per need.
Comments
Post a Comment