The "Find duplicate by ID" flow action lets you search for duplicate records based on a given record Id. If duplicates are found, search results are returned that can be used in other DC flow actions.
Step 1 Apply a scenario to use in the Flow action
Duplicate Check uses the applied scenario to decide how to compare records in a flow action.
Navigate to the DC Setup
Open the Object you want to work with in a Lightning Flow.
At the scenario tab, decide which scenario you want to use and apply to scenario to "Flow" at "Apply To".
By applying multiple scenarios to the same feature, Duplicate Check will return potential duplicates records via the OR method. Learn more about scenarios.
Step 2 Use the Find Duplicate by ID flow action
Open the Lightning Flow Builder.
From the Elements section, drag a new Action to the screen from the Toolbox on the left side.
In the New Action dialog, search for Find Duplicates by ID.
At "Label", define a name for your action. If the API name is not set automatically, make sure an API name is defined as well.
At "Set Input Values", make sure to define a Record ID. The given record ID is the ID the duplicate seach is executed for.
The input can be a specific Record ID, but can also come from a variable.
At "Search Cross Object", decide if you want to search for duplicates across multiple objects. If so, make sure to toggle the button to "Include" cross object. As a value, insert the Global Constant set to true.
Please note that to search for duplicates across multiple objects, the "Cross Object" feature has to be enabled and configured.
If you want to search for duplicates in the same object only, make sure not to include "Cross Object".
Step 3 Connect your action to the Start trigger
Make sure the "Find Duplicates by ID" is connected to the start trigger.
Step 4 Run the flow
Run the flow by clicking "Run".
Duplicate By ID action results
After executing the flow, the Find Duplicates by ID returns the following parameters that can be used in other flow actions.
A boolean that returns "True" (duplicates are found) or "False" (no duplicates found).
The record ID of the duplicate record with the highest matching score.
The matching score of the highest scoring duplicate.