25
JanNew Year Special : Self-Learning Courses: Get any course for just $49! - 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: A Step-by-Step Guide to Embark on the Full-Stack Developer Journey
Apex code:-
Read: How To Get A Salesforce Job Without Experience?
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: How to Merge Duplicate Accounts and Contacts in Salesforce Lightning?
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.
Cyber Security
QA
Salesforce
Business Analyst
MS SQL Server
Data Science
DevOps
Hadoop
Python
Artificial Intelligence
Machine Learning
Tableau
Search Posts
Related Posts
What is SFDC? And How It Can Help Your Career? 975.8k
Security model in Salesforce - What Do You Need To Know? 619.1k
VisualForce Component: Type of VisualForce Component in Salesforce 13.7k
Salesforce Career Path: Guide to Building a Successful Career in Salesforce 232.4k
The Ideal Salesforce Admin Tutorial For Beginners With Career Path & Certifications 4.5k
Receive Latest Materials and Offers on Salesforce Course
Interviews