sf_find_duplicates {salesforcer} | R Documentation |
Find Duplicate Records
Description
Performs rule-based searches for duplicate records.
Usage
sf_find_duplicates(
search_criteria,
object_name,
include_record_details = FALSE,
guess_types = TRUE,
verbose = FALSE
)
Arguments
search_criteria |
|
object_name |
|
include_record_details |
|
guess_types |
|
verbose |
|
Value
tbl_df
of records found to be duplicates by the match rules
Note
You must have active duplicate rules for the supplied object before running
this function. The object_name
argument refers to using that object's duplicate
rules on the search criteria to determine which records in other objects are duplicates.
Examples
## Not run:
# use the duplicate rules associated with the Lead object on the search
# criteria (email) in order to find duplicates
found_dupes <- sf_find_duplicates(search_criteria =
list(Email="bond_john@grandhotels.com"),
object_name = "Lead")
# now look for duplicates on email using the Contact object's rules
found_dupes <- sf_find_duplicates(search_criteria =
list(Email="bond_john@grandhotels.com"),
object_name = "Contact")
## End(Not run)