I'm wondering if I can use the duplicate management rules to find duplicate account/Lead records but if the provided (via API) record does not have a duplicate, then I don't want to insert a record.
eg. I'm getting data for customer's Firstname, Lastname, phone, company, age, and zip.
The lead object in salesforce has a duplicate management rule setup to find duplicates based on Firstname, Lastname, and Zip.
I want to use duplicate management rules against my data to see if any duplicate records exist or not without inserting a lead record if no duplicate record found. In short use duplicate management rules without DML operation.
Because with my data, I'm creating a record for a different Object (let's call it object START) where it has a lookup to Lead. And during duplicate validation for Lead records, if I found the duplicate record, I would create sobject for START and populate lead lookup based on duplicate record found or leave it null if not found.)
In short, I want to use duplicate management rules on Lead to check if duplicate records exist or not without actually inserting Lead records.