Input & Output
Insert record ID with filter
The doDirectProcess(Id recordId, String filterDeveloperName) method processes a Salesforce record asynchronously, applying a predefined filter to customize duplicate detection or other actions based on your Plauti Deduplicate Setup configurations.
Method Signature
Method Name: doDirectProcess
void doDirectProcess(Id recordId, String filterDeveloperName)Parameters
| Type | Variable | Description |
|---|---|---|
Id | recordId | The unique Salesforce ID of the record to process. |
String | filterDeveloperName | The developer name of a predefined filter to apply. |
ThefilterDeveloperNameparameter refines the pool of records against which the processed record is compared during Direct Processing. It does not determine whether the record specified byrecordIdis processed; the record is always processed. This ensures flexible and precise duplicate detection based on the business logic defined in the Duplicate Check Setup.
Output
The method does not return any value (void).
Apex Example
This snippet initializes the Duplicate Check API and starts a direct processing operation for a specific Contact record using a defined filter. It processes the record with the doDirectProcess method and logs the action.
// Define the ID of the record to process
Id contactId = '003J800000A3JluIAF';
// Define the developer name of the filter
String filterDeveloperName = 'HighValueContacts';
// Execute the Direct Processing method
dupcheck.dc3Api dc3Api = new dupcheck.dc3Api();
dc3Api.doDirectProcess(contactId, filterDeveloperName);
// Optionaly log the action
System.debug('Direct processing started for Contact with ID: ' + contactId + ' using filter: ' + filterDeveloperName);Updated 5 months ago