25
JanSalesforce 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: How can Learning Salesforce Developer Skills Lead you to your Dream Job?
Apex code:-
Read: Top 7 Impactful Data Loaders Tools for Salesforce : Import & Export Data
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 Install and Use Salesforce ANT Migration Tools?
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
Top 30 Core Java Interview Questions and Answers for Fresher, Experienced Developer
33.9k
Cloud Computing Interview Questions And Answers
28.2k
What is SFDC? What does SFDC stand for?
27.5k
Difference Between AngularJs vs. Angular 2 vs. Angular 4 vs. Angular 5 vs. Angular 6
24.4k
SSIS Interview Questions & Answers for Fresher, Experienced
20.5k
Related Posts
Receive Latest Materials and Offers on Salesforce Course
Interviews