03
AprGrab Deal : Flat 23% off on live classes + 2 free self-paced courses as a bonus! - 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: Wrapper Class Salesforce Tutorial Guide for Beginner in 2020
Apex code:-
Read: All About Salesforce Certifications You Must Know
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: Difference Between Salesforce and Servicenow
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
A Comprehensive Guide for Salesforce Certification Preparation
235.8k
What are the Ways to Import Data into Salesforce?
4.3k
A Definitive Guide in 2023 To Batch Apex Class In Salesforce
175.3k
Is it worth to learn Salesforce? Top 10 Reasons to Learn Salesforce?
510.5k
How to Install and Use Salesforce ANT Migration Tools?
876.3k
Receive Latest Materials and Offers on Salesforce Course
Interviews