The below desribed methods are part of the ptm_dcp_custombuttonactions.js-web resource. More information on this resource can be found here. The comments and the code for one example of this resource are added below.
e.g., you can predefine a template that should be always used to perform the merge.
The following article contains a description of how to change, modify and extend this feature.
Please select the product and CRM version form the table below and follow the link to get redirected to a description of how to debug.
In CRM 2011, all DocumentsCorePack templates are stored in custom entities. The name of this custom entity is DocumentsCorePack Template (ptm_mscrmaddons_dcptemplates).Every record of this entity has the template attached as a note.
Per default, CRM metadata information for DocumenstCorePack is stored here: