27
MayFOMO ALERT : FLAT 10% OFF * on ANY COURSE & 25% OFF on TWO COURSES
FLAT10
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: What is Salesforce? Explore Intriguing World of Salesforce For Business & Career Growth
Apex code:-
Read: What is the Collection in Salesforce? (2020 updated)
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: Salesforce Platform Developer 1 Exam Details You should Know!
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
Trending Posts
What is SFDC? How is it Helping? Why is it a Better Career Choice?
37.9k
Top 51 Core Java Interview Questions and Answers for Freshers & Experienced Developers
35k
Add Column in SQL: A Complete Never-Before Guide for You in 2022
28.6k
Top 110+ Manual Testing Interview Questions & Answers for Freshers & Experienced
23.8k
Related Posts
Receive Latest Materials and Offers on Salesforce Course
Interviews