Method Description
Performs a search for duplicate records asynchronously based on the Duplicate Detection configuration for the account. Returns an array of search.Result objects. This method only applies to records that support duplicate record detection. These records include customer | lead | prospect | partner | vendor | contact.
Note The parameters and errors thrown for this method are the same as those for search.duplicates(options). For more information about promises, see Promise Object.
Returns
Synchronous Version
Supported Script Types
Client and server scripts
For more information, see SuiteScript 2.x Client Script Type.
Governance
10 units
Module
Sample code:
//Add additional code
…
// Search for duplicates of a specific record using the options.id
// parameter
var duplicatesOfRecord = search.duplicates({
type: search.Type.CONTACT,
id: 425
});
// Search for duplicates based on specific fields on a record type
// using the options.fields parameter
var duplicatesUsingFields = search.duplicates({
type: search.Type.CONTACT,
fields: {
’email’ : ‘sample@test.com’
}
});
…
//Add additional code