11
FebPROMO : GET UP TO 20% OFF ON LIVE CLASSES + 2 SELF-PACED COURSES FREE!! - SCHEDULE CALL
Salesforce has already provided prebuilt application such as workflow, approval process, process builder etc for the CRM functionality. It may be possible that the Organization has much more complex business requirements which cannot achieve by current prebuilt applications. When it happensthe Force.com platforms has following ways for developer to build custom functionality. We Can use Apex for Web Services, Email Services, Provide solution for Complex business requirements which cannot fulfilled by workflow rule. Add custom logic to another operation such as saving record.
How to Write Basics Access modifier:-
Read: All You Need to Know About Salesforce Administrator
Apex code:-
Read: The Best Salesforce Certifications to Look for in 2023
Ans:-
Public class listofAccountRecordClass
{
Public list<account>getAccountList(){
List<account>accountList = [select id,name,phone,industry,rating from account];
If(!accountList.isEmpty()){
returnaccountList;
}
System.debug(‘accountList’+accountList);
return new list<Account>();
}
}
GO TO ANONYMOUS WINDOW.
Call the class.
Read: Top 7 Impactful Data Loaders Tools for Salesforce : Import & Export Data
A dynamic, highly professional, and a global online training course provider committed to propelling the next generation of technology learners with a whole new way of training experience.
AWS
DevOps
Data Science
Hadoop
Salesforce
QA
Business Analyst
MS SQL Server
Python
Artificial Intelligence
Machine Learning
Tableau
Search Posts
Related Posts
What Are The Validation Rules? How To Create Salesforce Validation Rules?
143k
Know Everything About a Salesforce Consultant Roles and Responsibilities!
1.3k
How To Pass All Salesforce Admin Certification Exams?
989.9k
Who Wins The Battle Between Pipedrive And Salesforce?
666.8k
Salesforce Platform Developer 1 Certification: How to Pass it?
246.7k
Receive Latest Materials and Offers on Salesforce Course
Interviews