Organizations often have a requirement to identify prospective companies that are not currently a customer, and this can be achieved in Salesforce CRM by storing the value Prospect as a type of account in the standard field called Type.
Carry out the following steps to develop a Lightning JavaScript Helper which is used for searching accounts, 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, open the resource or click on the tab for the Lightning Component
accountSearchBeforeCreate
.cmp
. - Click on
HELPER
(or press Ctrl + Shift + 3), as shown in the following screenshot:
- In the resulting Lightning JavaScript Helper edit page, paste the following...