Nonprofit Hands-on Assignments
Share
Explore

icon picker
Screen Flow Hands-On Assignments

Part 1: Create the Screen Flow


1) Download the image below to your computer

possible-duplicate.JPG
2) Go to Setup → Flows, Click New Flow
image.png
3) Create New Formula Resource
-Formula: LEFT({!$Api.Partner_Server_URL_260}, FIND( '/services', {!$Api.Partner_Server_URL_260})) + "lightning/n/npsp__Contact_Merge"
image.png
image.png
4) Add a Screen Element
image.png
5) Use a Display Text element: Insert image into the screen flow with the words "Go to NPSP Contact Merge and Search for this Record" and use the link feature with this in the link: {!LinktoContactMergeTab}
image.png
6) Save and Activate Screen Flow

Part 2: Create a Checkbox field on Contact Object


1) Create a Checkbox field called: "Possible Duplicate" on the Contact Object
image.png

Part 3: Install Unofficial SF Action that can call duplicate rules.


This will call the active duplicate rule through Apex Action.

Part 4: Create Record Triggered Flow to Identify Duplicates


1) Create a record triggered flow that runs anytime a contact is updated or created.
image.png
The flow will:
b) Add the Unofficial SF Action
c) Add a decision element that determines if the action had any outputs
d) If found go to an Update Record element that updates the triggering contact record's potential duplicate box as checked
e) If not found go to an Update Record element that updates the triggering contact record's potential duplicate box as unchecked
image.png
2a) Action:
image.png
2b) Decision:
Name First Outcome: “Duplicate Found”
Use Action - as resource Outputs from Check_for_Duplicate_Contact.duplicate.recordid (see video below)
IsNull Equals Global Constant False

2c) Update - Duplicate Found:
image.png
2d) Update - Duplicate Not Found:
image.png
3) Save and Activate Flow

Part 5: Add Screen Flow to the Lightning Record Page & Set Component Visibility


1) Edit the Contact Lightning Record Page
2) Add the Flow Element to the layout
3) Make the Component visibility set to if Possible Duplicate = True
image.png

Part 6: Create a Duplicate Record to Test


Share
 
Want to print your doc?
This is not the way.
Try clicking the ⋯ next to your doc name or using a keyboard shortcut (
CtrlP
) instead.