// Given an sObject as input, find a list of matches by scenario that match the input.
global static List<Matches> findMatches( sObject searchObject );
global class Matches
{
global Id scenarioId; // Id of the scenario found in the CRMfusionDBR101__Scenario__c table.
global String matchOnInsertAction;
global String matchOnUpdateAction;
global String blockingMessage; // Error message displayed if this is a blocking scenario match.
global Set<Id> matchedIds = new Set<Id>(); // Set of all matching dupe ids.
// For Lead to X scenarios this includes Leads and Accounts or Contacts.
}
// Temporarily disable all DB functionality for the current apex context.
global static void disableDupeBlocker();
// Re-enable all DB functionality for the current apex context.
global static void enableDupeBlocker();
// Temporarily prevent blocking/redirecting in the current apex context.
global static void preventBlocking();
Note: preventBlocking will create a Duplicate Warning in place of the blocking action, so the duplicate will be detected just not blocked.
// Allow blocking/redirecting in the current apex context.
global static void allowBlocking();
// Temporarily prevent any matching (all types) in the current apex context.
global static void preventMatching();
// Allow matching in the current apex context.
global static void allowMatching();
// Load default DupeBlocker Settings for use in the current apex context. Commonly used in custom unit tests to confirm custom code works with DupeBlocker with seeAllData = //false New in Version 3.9.2
static void populateDefaultTestSettings()
Simply add this line of code just before the unit test code and it will populate the default values for first name mappings, states, countries and account name cleaning.
Documentation