You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
//Check the complete course here https://mytutorialrack.com/salesforce-platform-developer-1-certification-course/
//Apex Variable Reference
String CustomerName = 'ABC Customer';
List<apex_customer__c> listOfCustomer = [SELECT Id, Name,apex_customer_status__c FROM APEX_Customer__c WHERE Name = :CustomerName];//Query Using Apex variable
List<apex_invoice__c> invoiceList=[select id,apex_amount_paid__c from apex_invoice__c where apex_customer__r.name=:CustomerName];
System.debug('customer records are'+listOfCustomer);//Customer Name
System.debug('invoice records are '+invoiceList);//Customer Name