05
AugGrab Deal : Flat 30% off on live classes + 2 free self-paced courses! - 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: What is Salesforce Sandbox? How to Create & Uses of Sandbox?
Apex code:-
Read: What Is Trigger In 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: How to Create Assignment Rules in Salesforce? [Updated in 2020]
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
Apex:Actionfunction In The Salesforce VisualForce Page
216.5k
What is Inbound Email Service in Salesforce?
650.3k
Top 10 Salesforce Influencers to Follow, Who are Pros!
3.9k
Salesforce Marketing Cloud: A Powerful Marketing Platform
973.9k
The Ultimate Guide to Salesforce's AI-Powered Solution Einstein GPT!
43
Receive Latest Materials and Offers on Salesforce Course
Interviews