Salesforce:Result Code Status Indicator: Difference between revisions

From Melissa Data Wiki
Jump to navigation Jump to search
Created page with "{{ListwareForSalesforceNav |LightningCollapse= }} {{CustomTOC}} The Clean Suite Result Code Indicator is a lightning component that can quickly display information to the user about the quality of a record. The component is drag and drop ready, and fully customizable. It can display various messages and colors depending on the value of a field. It is designed to work with [Melissa Result Codes] that return from webservice calls. However, it can be tied to any field yo..."
 
No edit summary
 
(One intermediate revision by the same user not shown)
Line 65: Line 65:
[[File:Salesforce_ResultCode_SaveForm.png|Result Code Form Save|link=]]
[[File:Salesforce_ResultCode_SaveForm.png|Result Code Form Save|link=]]


 
<br><br>One setup is complete, we should now see a status indicator displaying the appropriate message for our field’s value. In the example below, we have three components, displaying messages for Address, Phone, and Email.
One setup is complete, we should now see a status indicator displaying the appropriate message for our field’s value. In the example below, we have three components, displaying messages for Address, Phone, and Email.


[[File:Salesforce_ResultCode_VerificationLevelsExample.png|Result Code Verification Levels Example|link=]]
[[File:Salesforce_ResultCode_VerificationLevelsExample.png|Result Code Verification Levels Example|link=]]
</ol>
</ol>
==Recomended Patterns==
The following patterns can be used as a starting point for users who are not sure what REGEX patterns to use.
;Personator
:Invalid: <code>AE</code>
:Partially Valid: <code>AS0[2]</code>
:Valid: <code>AS0[1,3]</code>
;Global Address Verification
:Invalid: <code>AE</code>
:Partially Valid: <code>AV1[1-5]|AV2[1-3]</code>
:Valid: <code>AV2[4-5]</code>
;Global Email
:Invalid: <code>EE</code>
:Partially Valid: <code>ES03</code>
:Valid: <code>ES01|ES2[1-2]</code>
;Global Phone
:Invalid: <code>PE</code>
:Partially Valid: <code>PS20</code>
:Valid: <code>PS01|PS22</code>




[[Category:Clean Suite for CRM:Salesforce]]
[[Category:Clean Suite for CRM:Salesforce]]

Latest revision as of 00:37, 12 August 2023

← 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



The Clean Suite Result Code Indicator is a lightning component that can quickly display information to the user about the quality of a record. The component is drag and drop ready, and fully customizable. It can display various messages and colors depending on the value of a field. It is designed to work with [Melissa Result Codes] that return from webservice calls. However, it can be tied to any field you wish within salesforce that contains a text value.

Result Code Verification Levels


Setup

To set up the component, first visit a record for which you want to add the component to.

  1. Click the gear icon at the top right.
  2. Click Edit Page from the drop down menu.
  3. Result Code - Edit Page
  4. On the left hand side in the Components tab, find the CS ResultCodeIndicator.
  5. Drag the component onto the page wherever, you would like on the page.


Configuring the component

While still on the page editor, we can now customize the component to our liking

  1. Click the newly added Result Status Indicator component to open the settings.
  2. Result Status Indicator
    1. On the right hand pane, you will see various text boxes and descriptions of what each option does.
  3. Title allows us to specify the tile for our component. In our case we chose Address Verification because we want to display address related messages.
  4. Result Code Field - Title
  5. Field Name is the field on our record that we wish the component to monitor. Make sure to use the fully verified API name for your field. In our case, we are using MDPERSONATOR__PersonatorResults__c. This will vary depending on how you have configured your Salesforce org.
  6. Result Code Field - Field Name
  7. Invalid Record Message allows us to specify a message when the invalid formula is true.
  8. Result Code Field - Invalid Record Message
  9. Invalid Record REGEX allows us to specify a regular expression, that matches against the Field Name set above. When this REGEX returns as a match, our message is displayed as well as the color we have defined. For this example, we chose AE which matches any result code containing AE ex: AE01, AE09, etc.
  10. Result Code Field - Invalid Record REGEX
  11. Invalid Record Color allows us to specify a HEX color that we wish for the Result Code Indicator to display, indicating we have a match. The color we have selected is a nice shade of RED.
  12. Result Code Field - Invalid Record Color
  13. Continue customizing the form for Partially Valid and Valid fields.
  14. When done, click the SAVE button at the top right.
  15. Result Code Form Save

    One setup is complete, we should now see a status indicator displaying the appropriate message for our field’s value. In the example below, we have three components, displaying messages for Address, Phone, and Email. Result Code Verification Levels Example

Recomended Patterns

The following patterns can be used as a starting point for users who are not sure what REGEX patterns to use.

Personator
Invalid: AE
Partially Valid: AS0[2]
Valid: AS0[1,3]
Global Address Verification
Invalid: AE
Partially Valid: AV1[1-5]|AV2[1-3]
Valid: AV2[4-5]
Global Email
Invalid: EE
Partially Valid: ES03
Valid: ES01|ES2[1-2]
Global Phone
Invalid: PE
Partially Valid: PS20
Valid: PS01|PS22