In this recipe, we develop an Apex Controller using the Salesforce Developer Console. The purpose of the Apex Controller is to search and retrieve existing account records from within the Salesforce CRM organization.
Carry out the following steps to develop an Apex Controller, which is used as part of the account search mechanism, using the Salesforce Developer Console:
- Click on the Setup gear icon, as shown in the following screenshot:
The Setup gear icon is located in the top right-hand area of the main home page.
- Click the
Developer Console
option, as shown in the following screenshot:
- In the resulting Developer Console window, click on
File
. - Click on
New
. - Click on
Apex Class
, as shown in the following screenshot:
- In the resulting
New Apex class
dialog, enterAccountSearchController
in thePlease enter a name for your new Apex class
textbox. - Click on
OK
, as shown in the following screenshot:
- In the resulting Apex class edit page...