0% found this document useful (0 votes)
615 views

SFDC Basic Level Development Tasks

The document outlines various tasks related to Apex coding exercises including: 1. Creating Apex classes to represent common business objects like Employee, Student, Product, and Movie and displaying them on Visualforce pages. 2. Creating standard and custom sObjects like Account, Contact, Opportunity, and displaying them on Visualforce pages. 3. Working with Apex data types like arrays, lists, sets, and maps to store and display data. 4. Writing Apex code using DML operations to insert child records related to parent sObjects. 5. Handling Mixed DML exceptions when inserting certain objects together. 6. Writing SOQL queries to fetch data from standard sObjects and display on Visualforce
Copyright
© © All Rights Reserved
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
615 views

SFDC Basic Level Development Tasks

The document outlines various tasks related to Apex coding exercises including: 1. Creating Apex classes to represent common business objects like Employee, Student, Product, and Movie and displaying them on Visualforce pages. 2. Creating standard and custom sObjects like Account, Contact, Opportunity, and displaying them on Visualforce pages. 3. Working with Apex data types like arrays, lists, sets, and maps to store and display data. 4. Writing Apex code using DML operations to insert child records related to parent sObjects. 5. Handling Mixed DML exceptions when inserting certain objects together. 6. Writing SOQL queries to fetch data from standard sObjects and display on Visualforce
Copyright
© © All Rights Reserved
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
You are on page 1/ 14

Task 1

Task 2

Task 3

Task 4

Task 5

Task 6

Task 7
Task 8

Task 9

Task 10

Task 11

Task 12

Task 13

Task 14
Task 15

Task 16

Task 17

Task 18

Task 18
1.Create a class Employee with (empName,Salary,exp) and display in the VF page
2. Create a Class Student with(stdName,age,branch) and display in the VF page
3. Create a Class ProductData with (ProdName,Price ,quanity ) and display in the VF Page
4. Create a class Movie with(MovieName, ticketsAvailable,showTime ) and display in the VF Page
5. Create a class College with(colgName,branch,city,phone) and display in the VF page

1. Create Sobject Account with Name,Industry,Phone and display in the VF page


2. Create Sobject Contact with LastName,FirstName,Email,Phone and display in the VF page
3. Create Sobject Case with Subject,Origin,Priority and display in he VF page
4. Crate Sobject Opportunity with Name,Amount,StageName,closeDate and Display in the VF page

1.Create a array to store marks and insert marks


2.Create a array to store citynames and insert cityNames
3.Create a array to store productNames and insert names
4.Create a array of Account and insert three Accounts
5.Create a array of Contact and insert three contacts
6.Create a array of cases and insert three cases
7.Create a wrapper class Student with name,age,dob
create a array of student wrapper class and insert three students
8.Create a wrapper class employee with empName,exp ,salary
Create a array of employee wrapper class and insert three employees
9.Create a wrapper class AccountInfo with Account and contact objects
Create a array of AccountInfo class and insert three records
10. Create a Wrapper class College with ColgName,Contact con
Create a array of Wrapper class College and inser three records

1. Create List of Account and display in the VF Page


2. Create List of Contct and display in the VF page
3. Create a List of Opportunity and display in the VF Page
4. Create a List of Case and display in the VF Page

1. Create List of Integers and display in the VF page


2. Create List of Integers and print their sum in the VF Page
3. Create List of Integers and print max value in the VF page
4. Create List of Strings and print them in the VF page

1. Create a List of wrapper class Student with Name,Age ,Dob and display the data in the VF page
2. Create a List of wrapper class Employee with empName,Salary,exp and display the data in the VF Page
3.Create a List of wrapper class ProductData with productName,Price and quantity and display the product data which has m

1. Create a set of integers and display the data in the VF page


2. Create a Set if String and display the data in the VF Page
3. Create a Set of Student wrapper class and display in the VF page
1. Create Map with Student name as key and Student phoneNo as value and display the map data using pageblockTable in the
2. Create Map with with empNo as Key and Employee wrapper class as object (Wrapper class should contain empNo,Name,Sa
3. Create a Map with city name as key and List of places as Values as values

Description
1. Insert new records using DML operations in the follwing objects
a. Account
b. Contact
c.Case
d.Opportunity
e. Lead
f.Product
g.User
i. Task
j. Attachment
Write DML to insert Child records for given Parent
1. Create a new Account record and insert three contacts for the Account
2. Create a new Account and insert three opportunities
3. Create a new Account and insert three cases
4. Create a new Account and create a three tasks for it
5. Create a new Account and attach three attachments for it

6. Create a Student object with ( LastName, FirstName )


Create a Course object with ( Course Name, City )
create a student-Lookup field on Course object
1. Create new Student and three course using DML

1. Create a method to insert Account and User handle Mixed DML Exception
2. Create Group and add GroupMember and handle Mixed DML Exception
3. Create Account and and AccountTeamMember
4. Create a Opportunity and OpportunityTeamMember
5.Create a Case and add CaseTeamMember

1. Write SOQL to fetch data from Account and display data in VF Page
2. Write SOQL to fetch data from Contact and display data in VF Page
3. Write SOQL to fetch data from Opportunity and display data in VF page
4. Write SOQL to fetch data from Case and display data in VF page
5.Write SOQL to fetch data from user object and display in VF page

1.Write SOQL to fetch all account records with corresponding contacts and display in VF Page
2.Write SOQL to fetch all account records with correponding Opportunities and display in VF Pages
3.Write SOQL to fetch all account record with corresponding Cases and display in the VF Page

1. Write a SOQL to fetch all account records which are created today
2.Write a SOQL to fetch all opportunity records which are closed this month
3.Write a SOQL to fetch all opportunity records which are created in last year
4.Write a SOQL to fetch all Accounts including records in Recyclebin
5Write a SOQL to fetch all Users whose profile is System Admin
6. Write a SOQL to fetch 10 recently accessed Account record
7. Write a SOQL to fetch Tasks that are assinged on a Particular Account

1.Write a SOQL to Sum(amount),MAX(Amount),MIN(Amount),AVG(Amount) from the opportunity


2. Write SOSL to search for keyword Satish Myla in all fields and display the result in VF Page
3.Write SOSL to search for '1234' in Phone fields and display the result in VF pages
4.Write SOSL to Search for ' [email protected]' in all the email fields and display result in VF Pages

1.Create a VF page with two inputText fields name and Industry and insert the record into Account
2.Create a VF page with two inputFields name and Industry and insert the record using StandardController and extentions
3. Create a VF page with StandardController Lead and insert the record into Lead object using extention
4.Create VF page with StandardController Account and insert the record into Account object using Extention
5.Create VF page with StandardController Opportunity and insert the record into Opportunity using Extention

1. Create Custom Setting Student with field Name,Course and Fee and insert three records and display the data in the VF page
2. Create Custom Setting CapitalInfo with field City,Location ,Zipcode and insert three records and display the data in the VF pa
3. Craete a Hirerachy Custom Setttings Course with Field Active ,Price and Assign the following values
a .System Admin : Price -5000 Active-false
b. Entire Organization Price :10000 Active-true
and display in the VF page

1. Create a batch Apex which fetch all the account Records from Account which are owned by the user whose profile is System
2. Create a batch apex to fetch all the records from Account object and send the email to all the users withPDF attachment w
3.Create batch apex with takes the query using construtor and update all the description field as batch update
4. Create a batch apex which removes all the opporunity records which are created in last three months
5. Create a batch apex which will update the Country of all the Account records as 'IND

Craete a custom object Loan with the following fields


a .Loan Type : PickList ( Eduction,Housing ,Personal)
b. Status : PickList (Pending ,Approved,Rejected)
c.Applied Amoun: Currrency

2. Create approval process using standard Navigation .


Entry Criteria : Status =pending
Approver :user whoes profile is System Admin

3. Write a soql to fetch all the loan records whose LoanType is Education and update the status to Pending
and submit the records for Approval
uct data which has max price
pageblockTable in the Vfpage
tain empNo,Name,Salary )

Ex : Account a =new Account(Name='aaa',Industry='Banking');


insert a;
Conatct c1=new Contact();
c1.lastname='Myla';
c1.firstName='Satish';
c1.accountId=a.id;
insert c1;
er and extentions

he data in the VF page


y the data in the VF page

whose profile is System Admin and re-assign to User whose profile is CapitalInfo
ithPDF attachment which contains records owned by the user .
Trigger
2
3

4
5

10
When a new Account is inserted with Industry as Banking then set the annual revenue as 50000
When a new Contact is inserted with out Account then throw error message
When a new Account is inserted with Industry as banking assign the owner as 'karthic'

When ever new Account is inserted with industry as Energy and Type as new Customer then create new Opportunity with sam
Create a new Custom objects Application and BlackList
Object Name Field Names
Application Name,Pancard ,Phone
BlacKList Name,Pancard,phone

a. When ever we are inserting new Application it has to check pancard no of the new application record is
in the Blakc list or not .
b.If the pancard of the Appliction is in the blacklist object then update the blackList phone with new application phone no and

When a new Account record is created with Industry as Banking and AnnualRevenue more than 5lacs then add karthic as Acco

When a new Case is created with case origin as Web then add the user karthic as CaseTeamMember

When ever new Opportunity is created with Opportunity amount more than 5 lacs create a Karthic as OpprotunityTeamMemb

When a new Account is created with Account Type as Customer then Create new Task for the owner of the record and send

When a new Account record is inserted check wheather any duplicate Account exists based on Account Name,Industry if dup
Note :First Create a new User karthic with Salesforce License
1
2
When ever the opprotunity Stage is changed to closed won share the opportunity with karthic with read access
When ever new lead is inserted calculate the lead score based on following rules
Field Name Points(if the field values are entered)
Phone 10
Email 10
AnnualRevenue 20
Industry 20
Subject 10

Create Custom Field Number Field LeadScore . Assign the Lead score based on above fields

You might also like