Black Friday Deal : Up to 40% OFF! + 2 free self-paced courses + Free Ebook  - SCHEDULE CALL

- Salesforce Blogs -

An Introduction to Apex Class in Salesforce for Beginners

Introduction to Apex class:-

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?
  1. Private:- method and variable only we can access in the defining apex class
  2. Public:- method and variable of an apex class we can access from another apex class as well.
  3. Protected:- method and variable can be access by any inner classes in the same Apex class, and those classes that extend the defining Apex class. You can only use this access modifier for instance methods and member variables.
  4. Global :- method and variable can be access from any apex class in the organization or from any other organization.

free salesforce demo Static and Instant Method:-

Apex code:-

Read: How Long Does It Take To Learn Salesforce? Get a Real Estimate
  1. How to get list of records using apex class

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>();
}
}

An Introduction to Apex Class in Salesforce for Beginners An Introduction to Apex Class in Salesforce for Beginners GO TO ANONYMOUS WINDOW. An Introduction to Apex Class in Salesforce for Beginners Call the class. An Introduction to Apex Class in Salesforce for Beginners An Introduction to Apex Class in Salesforce for Beginners

Read: Salesforce Architect Certification Study Guide & Tips to Land The Job


fbicons FaceBook twitterTwitter lingedinLinkedIn pinterest Pinterest emailEmail

     Logo

    JanBask Training

    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.


  • fb-15
  • twitter-15
  • linkedin-15

Comments

Trending Courses

Cyber Security Course

Cyber Security

  • Introduction to cybersecurity
  • Cryptography and Secure Communication 
  • Cloud Computing Architectural Framework
  • Security Architectures and Models
Cyber Security Course

Upcoming Class

12 days 14 Dec 2024

QA Course

QA

  • Introduction and Software Testing
  • Software Test Life Cycle
  • Automation Testing and API Testing
  • Selenium framework development using Testing
QA Course

Upcoming Class

-0 day 02 Dec 2024

Salesforce Course

Salesforce

  • Salesforce Configuration Introduction
  • Security & Automation Process
  • Sales & Service Cloud
  • Apex Programming, SOQL & SOSL
Salesforce Course

Upcoming Class

8 days 10 Dec 2024

Business Analyst Course

Business Analyst

  • BA & Stakeholders Overview
  • BPMN, Requirement Elicitation
  • BA Tools & Design Documents
  • Enterprise Analysis, Agile & Scrum
Business Analyst Course

Upcoming Class

11 days 13 Dec 2024

MS SQL Server Course

MS SQL Server

  • Introduction & Database Query
  • Programming, Indexes & System Functions
  • SSIS Package Development Procedures
  • SSRS Report Design
MS SQL Server Course

Upcoming Class

11 days 13 Dec 2024

Data Science Course

Data Science

  • Data Science Introduction
  • Hadoop and Spark Overview
  • Python & Intro to R Programming
  • Machine Learning
Data Science Course

Upcoming Class

4 days 06 Dec 2024

DevOps Course

DevOps

  • Intro to DevOps
  • GIT and Maven
  • Jenkins & Ansible
  • Docker and Cloud Computing
DevOps Course

Upcoming Class

4 days 06 Dec 2024

Hadoop Course

Hadoop

  • Architecture, HDFS & MapReduce
  • Unix Shell & Apache Pig Installation
  • HIVE Installation & User-Defined Functions
  • SQOOP & Hbase Installation
Hadoop Course

Upcoming Class

4 days 06 Dec 2024

Python Course

Python

  • Features of Python
  • Python Editors and IDEs
  • Data types and Variables
  • Python File Operation
Python Course

Upcoming Class

19 days 21 Dec 2024

Artificial Intelligence Course

Artificial Intelligence

  • Components of AI
  • Categories of Machine Learning
  • Recurrent Neural Networks
  • Recurrent Neural Networks
Artificial Intelligence Course

Upcoming Class

12 days 14 Dec 2024

Machine Learning Course

Machine Learning

  • Introduction to Machine Learning & Python
  • Machine Learning: Supervised Learning
  • Machine Learning: Unsupervised Learning
Machine Learning Course

Upcoming Class

25 days 27 Dec 2024

 Tableau Course

Tableau

  • Introduction to Tableau Desktop
  • Data Transformation Methods
  • Configuring tableau server
  • Integration with R & Hadoop
 Tableau Course

Upcoming Class

4 days 06 Dec 2024

Search Posts

Reset

Receive Latest Materials and Offers on Salesforce Course

Interviews