Input & Output
Insert record ID
The doDirectProcess(Id recordId)
method triggers the Direct Processing feature for a specific Salesforce record. This feature processes the record asynchronously to identify duplicates, merge records, or perform other actions as defined in the Deduplicate Setup. The method relies on configurations such as Direct Merge, Direct Convert (if applicable), and defined threshold levels.
Method Signature
Method Name: doDirectProcess
void doDirectProcess(Id recordId)
Parameters
Type | Variable | Description |
---|---|---|
Id | recordId | The unique Salesforce ID of the record to process. |
Output
The method does not return any value (void
).
Apex Example
This snippet initializes the Duplicate Check API and starts direct processing for a specific Contact record using the doDirectProcess
method. It then logs the action.
// Define the ID of the record to process
Id contactId = '003J800000A3JluIAF';
// Execute the Direct Processing method
dupcheck.dc3Api dc3Api = new dupcheck.dc3Api();
dc3Api.doDirectProcess(contactId);
// Optionally Log the action
System.debug('Direct processing started for Contact with ID: ' + contactId);
Updated 17 days ago