PublicAPI.CRM.Lead.Dublicate ELMA API Documentation
Mark the lead as a duplicate
 
 
Syntax

public void Dublicate(
	Lead thisLead,
	Lead lead,
	string comment,
	bool copyContacts
)

Parameters

thisLead
Type: Lead
Lead. Object. Access path: PublicAPI.CRM.Lead
lead
Type: Lead
Duplicated lead. Object. Access path: PublicAPI.CRM.Lead
comment
Type: System String
Comment (optional parameter)
copyContacts
Type: System Boolean
Copy contacts (optional parameter)
Examples

//load a lead by ID 
var thisLead = PublicAPI.CRM.Lead.Load(3);
//load a lead by ID (duplicated) 
var lead = PublicAPI.CRM.Lead.Load(4);
//comment when duplicating 
var comment = "Comment";
//copy contacts (yes or no) 
var copyContacts = true;

//mark the lead as a duplicate
PublicAPI.CRM.Lead.Dublicate(thisLead, lead, comment, copyContacts);
See Also