Deduplicate Entry - URL Addressable
The Deduplicate Entry Lightning Component can be accessed via a URL that can be built up with several parameters to configure the form. Create a link that opens a Deduplicate Entry page for a specific object and record type, and with pre-populated values. In addition, a 'success' or 'cancel' URL can be set.
Base Path
To open the Deduplicate Entry page via a link, the URL should contain the base path, which is placed after the Salesforce domain.
In addition, configure the form by adding one or more parameters. The cobjectApiName parameter is required, to indicate the object. Other parameters are optional.
From Plauti Deduplicate version 3.362 onward, the base path for opening the Deduplicate Entry component is:
/lightning/cmp/dupcheck\_\_dc3EntryRecordForm?
In older versions of Plauti Deduplicate, the base path used to be /lightning/cmp/dupcheck\_\_dc3RecordFormByUrl? This base path will still work for now, but will be deprecated in the future.
Parameters
Build your link by placing the required c\_\_objectApiName parameter after the base path's question mark. If you want to add additional parameters, separate the parameters with the "&" character.
For example: c\_\_objectApiName=Account&c\_\_recordId=00Q090000011OGpEAM
When using IDs, make sure to use 18-character IDs.
| Parameter | Description | Example |
| cobjectApiName | The Object API Name. This parameter is required. | cobjectApiName=Account |
| crecordId | A Record ID. Use this parameter to open and edit a specific record. Use an 18-character ID, or add the CASESAFEID() method to guarantee an 18-character ID. |
crecordId=00Q090000011OGpEAM |
| crecordTypeId | A Record Type ID. Use this parameter to create a record with a certain record type. Use an 18-character ID, or add the CASESAFEID() method to guarantee an 18-character ID. |
crecordTypeID=012090000008VO0AAM |
| cdefaultValues | To pre-populate field values in the form, use a URL encoded JSON string as value. | For an example, see the Setting Default Values section below. |
| csuccessUrl | Use this parameter to override the URL target after a record is successfully saved. | csuccessUrl=https://www.duplicatecheck.com |
| ccancelUrl | Use this parameter to override the URL target if the user clicks the cancel button. | ccancelUrl=https://www.duplicatecheck.com |
Example
Using some example parameters as explained above, an example URL for opening a Deduplicate Entry form with certain predefined characteristics could look as follows:
https://yourSFORGname.lightning.force.com/lightning/cmp/dupcheck\_\_dc3EntryRecordForm?c\_\_objectApiName=Account&c\_\_recordId=00Q090000011OGpEAM
Setting default values
To pre-populate values in the Deduplicate Entry form, use the c\_\_defaultValues parameter. The value for this parameter should be a URL encoded JSON string. There are many free online tools that can help you with encoding JSON.
Input:
{
"Field\_API\_Name" : "Value", // For example - "Email" : "ruben@plauti.com" //
"Field\_API\_Name2" : "Value"
}
Output:
%20%7B%0A%20%22Field\_API\_Name%22%20%3A%20%22Value%22%2C%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%0A%20%22Field\_API\_Name2%22%20%3A%20%22Value%22%0A%7D
Full link:
/lightning/cmp/dupcheck\_\_dc3EntryRecordForm?c\_\_objectApiName=Lead&c\_\_defaultValues=%20%7B%0A%20%22Field\_API\_Name%22%20%3A%20%22Value%22%2C%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%0A%20%22Field\_API\_Name2%22%20%3A%20%22Value%22%0A%7D