16
DecSalesforce 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 to Get & Reset Security Token in Salesforce Lightning
Apex code:-
Read: How Long Does It Take To Learn Salesforce?
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: What are Field Dependencies? How to create Field Dependency in Salesforce?
JanBask Training is a leading Global Online Training Provider through Live Sessions. The Live classes provide a blended approach of hands on experience along with theoretical knowledge which is driven by certified professionals.
AWS
DevOps
Data Science
Hadoop
Salesforce
QA
Business Analyst
SQL Server
Search Posts
Trending Posts
Top 30 Core Java Interview Questions and Answers for Fresher, Experienced Developer 23.8k
Difference Between AngularJs vs. Angular 2 vs. Angular 4 vs. Angular 5 vs. Angular 6 16.5k
Cloud Computing Interview Questions And Answers 12.4k
SSIS Interview Questions & Answers for Fresher, Experienced 10.2k
Related Posts
How to Get Certified as a Salesforce Professional and Verify the Certification 237.9k
Salesforce Admin 201 Certification Practice Exams and Questions 651.3k
Visualforce Tags Salesforce 797k
Salesforce Career Opportunities in Australia - Things You Need to Know 1.3k
How Can I Start my Career in the Salesforce Industry? 529.4k
Receive Latest Materials and Offers on Salesforce Course
Interviews