Docsity

Cloud Computing Lab Manual Practical Journal Assignment 2 SPPU TE AIDS 2024 Pattern, Study Guides, Projects, Research of Computer Science

Toggle sidebar
bg1
PART B
Laboratory Assignment No. 2
Title: Creation of an Application in Salesforce.com using Apex Programming Language
Problem Statement: Create an application in Salesforce.com using Apex Programming Language.
Aim: To create a simple application in Salesforce.com using Apex Programming Language.
Objectives:
• To understand the concept of Salesforce.com.
• To study the basics of Apex Programming Language.
• To create a simple application using Apex.
• To understand the execution of Apex classes and methods.
• To learn the basic application development process in Salesforce.
Software Requirements: Windows 10/11 Operating System, Salesforce Developer Account, Salesforce Developer
Console, Google Chrome / Mozilla Firefox, Microsoft Word (for documentation)
Hardware Requirements: Computer or Laptop, Minimum 4 GB RAM, Intel Core i3 Processor or above, Stable
Internet Connection
Theory:
Salesforce
Salesforce.com/Salesforce is a cloud-based Customer Relationship Management (CRM) platform that enables
organizations to manage customer information, sales, marketing, and business processes through cloud computing. It
provides various tools for application development, automation, analytics, and customer support without requiring
users to manage the underlying infrastructure.
pf3
pf4

Partial preview of the text

Download Cloud Computing Lab Manual Practical Journal Assignment 2 SPPU TE AIDS 2024 Pattern and more Study Guides, Projects, Research Computer Science in PDF only on Docsity!

PART B

Laboratory Assignment No. 2

Title: Creation of an Application in Salesforce.com using Apex Programming Language Problem Statement: Create an application in Salesforce.com using Apex Programming Language. Aim: To create a simple application in Salesforce.com using Apex Programming Language. Objectives:

  • To understand the concept of Salesforce.com.
  • To study the basics of Apex Programming Language.
  • To create a simple application using Apex.
  • To understand the execution of Apex classes and methods.
  • To learn the basic application development process in Salesforce. Software Requirements: Windows 10/11 Operating System, Salesforce Developer Account, Salesforce Developer Console, Google Chrome / Mozilla Firefox, Microsoft Word (for documentation) Hardware Requirements: Computer or Laptop, Minimum 4 GB RAM, Intel Core i3 Processor or above, Stable Internet Connection Theory:

Salesforce

Salesforce.com/Salesforce is a cloud-based Customer Relationship Management (CRM) platform that enables organizations to manage customer information, sales, marketing, and business processes through cloud computing. It provides various tools for application development, automation, analytics, and customer support without requiring users to manage the underlying infrastructure.

Apex Programming Language

Apex is a strongly typed, object-oriented programming language developed by Salesforce for building custom business logic on the Salesforce platform. It has a syntax similar to Java and allows developers to create custom applications, triggers, classes, controllers, and web services. Apex code executes on Salesforce servers and integrates directly with Salesforce data.

Structure of an Apex Program

An Apex program generally consists of the following components:

  • Class Declaration : Defines the class that contains variables and methods.
  • Methods : Contain the business logic to perform specific operations.
  • Variables : Used to store data during program execution.
  • SOQL/SOSL Queries : Used to retrieve records from Salesforce objects.
  • DML Statements : Used to insert, update, delete, or retrieve records from the Salesforce database.

Common Apex Functions and Statements

Some commonly used Apex statements and functions are:

  • System.debug() – Displays messages in the Debug Log.
  • System.now() – Returns the current date and time.
  • System.today() – Returns the current date.
  • insert – Inserts new records into Salesforce.
  • update – Updates existing records.
  • delete – Deletes records from Salesforce.
  • Database.insert() – Inserts records with additional error handling.
  • Database.update() – Updates records with partial success options.

Applications of Salesforce

  • Customer Relationship Management (CRM)
  • Sales automation
  • Marketing automation
  • Customer service and support
  • Business process automation
  • Custom enterprise application development
  • Reporting and analytics Procedure:
  1. Log in to the Salesforce Developer account.
  2. Create a Custom Object named Student.
  3. Create the following custom fields: o Roll No (Number) o Course (Text) o Department (Text)
  4. Open the Developer Console.
  5. Click File → New → Apex Class.
  6. Name the class StudentManagement.
  7. Write the Apex code.
  8. Save the Apex class.
  9. Open Debug → Open Execute Anonymous Window.
  10. Execute: StudentManagement.addStudent();
  11. Click Execute.
  12. Open the Student object and verify that the student record has been inserted successfully.
  13. Check the Debug Log for the success message. Input: Student details such as Name, Roll Number, Course, and Department. Output: Student record created successfully in Salesforce and stored in the Student object. Conclusion: An application was created in Salesforce.com using Apex Programming Language successfully.