Salesforce:Express Entry Lightning Action Override

From Melissa Data Wiki
Revision as of 00:18, 28 October 2022 by Admin (talk | contribs) (Created page with "{{ListwareForSalesforceNav |IntroductionCollapse= }} {{CustomTOC}} This page will guide you in enabling Express Entry in your Salesforce Environment: ==Create the base Lightning Component to hold our override code== #Open the Dev Console by clicking the “gear” icon at the top right and clicking “Developer Console”. #In the Dev Console, click “File -> New” and choose “Lightning Component”. #Fill out the New Lightning Component form. The Name field shoul...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

← Clean Suite for CRM:Salesforce

Salesforce Navigation
Introduction
Getting Started
Installation
Getting Started with Lightning Components
Credits
Lightning Components
Lightning Quick Actions
Lightning Lookups
Lightning Global Express Entry
Clean Suite Advanced Mappings
Clean Suite Batch Processing
Result Code Status Indicator
Visualforce Pages
Installing Visualforce Pages
Custom Visualforce Pages
Custom Code
APEX Triggers
Custom Clean Suite Batch Processing
Express Entry Lightning Action Override
Result Codes
Salesforce Result Codes



This page will guide you in enabling Express Entry in your Salesforce Environment:

Create the base Lightning Component to hold our override code

  1. Open the Dev Console by clicking the “gear” icon at the top right and clicking “Developer Console”.
  2. In the Dev Console, click “File -> New” and choose “Lightning Component”.
  3. Fill out the New Lightning Component form. The Name field should be descriptive for future reference. In our case we chose to name it “MD_ExpressEntry_Override”. The Description field is optional.
Salesforce Express Entry Contact Lightning Override Instructions - 01 - New Lightning Bundle - Melissa Wiki
Fill out the New Lightning Component Form


Copy and Paste the Component code into the .cmp file

  1. Open the “ExpressEntryNew.cmp” file and copy the contents to your clipboard.
  2. Open the Component file of your new lightning component and paste the content inside, overwriting the existing content. In our case this file is named “MD_ExpressEntry_Override.cmp”.
  3. Hit Ctrl+S to save the current file.
Salesforce Express Entry Contact Lightning Override Instructions - 02 - Copy/Paste the Component Code - Melissa Wiki
Copy/Paste Component Code


Copy and Paste the Controller code into the Controller .js file

  1. Open the “ExpressEntryNewController.js” file and copy the contents to your clipboard.
  2. Open the Controller file of your new lightning component and paste the content inside, overwriting the existing content. In our case this file is named “MD_ExpressEntry_OverrideController.js”.
  3. Hit Ctrl+S to save the current file.
Salesforce Express Entry Contact Lightning Override Instructions - 03 - Copy/Paste the Controller Code - Melissa Wiki
Copy/Paste Controller Code


Copy and Paste the Helper code into the helper .js file

  1. Open the “ExpressEntryNewHelper.js” file and copy the contents to your clipboard.
  2. Open the Helper file of your new lightning component and paste the content inside, overwriting the existing content. In our case this file is named “MD_ExpressEntry_OverrideHelper.js”.
  3. Hit Ctrl+S to save the current file.
Salesforce Express Entry Contact Lightning Override Instructions - 04 - Copy/Paste the Helper Code - Melissa Wiki
Copy/Paste Helper Code


Override the default “NEW” action with our newly created Lightning Component

  1. At the top right, click “Setup” and then Select “Object Manager” on the Setup tab.
  2. Navigate to the Contact object and select “Buttons Links, and Actions” on the left navigation tab.
  3. Find the “NEW” action and click the drop down on the right and click “Edit”.
  4. Salesforce Express Entry Contact Lightning Override Instructions - 05 - Edit "NEW" Action - Melissa Wiki
    Edit "NEW" Action
  5. Select the “Lightning Component” radio button on the “Lightning Experience Override” section and chose our newly created component from the drop down list. Then Click Save.
  6. Salesforce Express Entry Contact Lightning Override Instructions - 06 - Save the Lightning Experience Override - Melissa Wiki
    Save the Override

Validate that our component works

  1. Create a new contact record.
  2. Being populating the fields.
  3. Type in an address in the Mailing Street field and after the third keystroke, suggestions should appear.
  4. Select an address from one of the suggestions and verify it populates the rest of the fields.
  5. Click “Create New” and validate a new record has been created with your selected address.
Salesforce Express Entry Contact Lightning Override Instructions - 07 - Create a New Record - Melissa Wiki
Create New Record