Apex Assignment-Webshala
Apex Assignment-Webshala
1) Write an apex program, to Delete the Records from the Hiring Manager
object whose name is starting with the specified Characters.
2) Write an apex program, to Re-Store the Hiring Manager Record back to the
object based on the Specified Name.
3) Write an apex program, to Update the Hiring Managers whose name starting
with "Apex HR" we below. Location = 'Pune' Contact Number = '9876543210'
5) Write an apex program, to Change the Priority as "High" for all New Case
Records. And Create a New Case Record into the object.
6) Define an Apex Class to manage the Customer Details and Assign the Values
and Print the Values.
7)Write an apex program, to fetch the Account Record based on the specified
name and fetch all the Related Contacts, Opportunities, and Cases associated
with the account.
8) Write an apex program, to fetch the Case Details based on the specified Case
Number and fetch all the associated Parent Details(Contact), Grand Parent
details(Account),..etc.
Collections:
1. Write an apex program, to insert 250 Lead Records inside the object.
2. Write an apex program, to insert 400 Contact Records inside the object.
3. Write an apex program, to insert an Account Record. And 10 Related
Opportunity Records in the object by using Bulkification Process.
4) Create a Map and insert record into opportunities object using map.
SOQL and SOSL Queries:
Trigger Assignments
1) On Account and Opportunity object there is city field and whenever i update
the account city field with new value then atomatically change assosiated
opportunity city field get updated
7) Create a Trigger on Lead Object, to Auto Populate the Annual Revenue based
on the Industry Name as below.
Industry Name AnnualRevenue
----------------------------------------
Banking 90,00,000
Finance 76,00,000
Insurance 45,00,000
Manufacturing 84,00,000
Education 74,00,000
Consulting 32,00,000
Energy 94,00,000
2) Create a Batch Class, to Calculate the Total Annual Revenue of all the
Account Records in the object, by dividing them to the various batches of size
4.
4) Create a Schedule Job, To Purge All the Position Records, whose MileStone
Date is Over. Schedule the Job to be get run on EveryDay morning @ 2.00 AM.