DC Entry - URL Addressable

Last published at: 2021-12-21 12:23:49 UTC

The DC Entry Lightning Component can now be accessed via a URL which can be built up to configure the form. This lets you create a link that opens an entry page for a certain object and record type, and pre-populate values. In addition, a success or failure URL can be set.

Base Path 

To open the DC Entry Lightning Component, the URL has to consist of the base path, which is placed after the Salesforce domain. In addition, choose to configure the form by using the available parameters.



Build your link by placing the required c__objectApiName parameter after the base paths question mark. If you want to add additional parameters, divide the parameters with the "&" character. 

Example: c__objectApiName=Account&c__recordId=00Q090000011OGpEAM


Description Example
c__objectApiName The Object API Name. This parameter is required.  c__objectApiName=Account
c__recordId Record ID. Use this parameter if you want to edit a given record.  c__recordId=00Q090000011OGpEAM
c__recordTypeId Record Type ID. Use this parameter if you want to create a record with a certain record type.  c__recordTypeID=012090000008VO0AAM
c__defaultValues To pre-populate field values in the form, use a URL encoded JSON string as value.  For example, see below. 
c__successUrl Use this parameter to override the URL target after a record is successfully saved.  c__successUrl=https://www.duplicatecheck.com
c__cancelUrl Use this parameter to override the URL target after a user clicks the cancel button.  c__cancelUrl=https://www.duplicatecheck.com

Setting default values 

To pre-populate values in the DC 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.


 "Field_API_Name" : "Value",                        // For example - "Email" : "ruben@plauti.com" //
 "Field_API_Name2" : "Value"



Full link: