public void Dublicate( Lead lead, Contractor contractor, string comment, bool copyContacts )
Mark the lead as a duplicate
Syntax
public void Dublicate( Lead lead, Contractor contractor, string comment, bool copyContacts )
Parameters
- lead
- Type: Lead
Lead, marked as a duplicate. Object. Access path: PublicAPI.CRM.Lead
- contractor
- Type: Contractor
Duplicated Contractor. Object. Access path: PublicAPI.CRM.Contractor
- comment
- Type: System String
Comment (optional parameter)
- copyContacts
- Type: System Boolean
Copy contacts (optional parameter)
Examples
//load a lead by ID var lead = PublicAPI.CRM.Lead.Load(3); //load the contractor by ID (duplicated) var contractor = PublicAPI.CRM.Contractor.Load(3); //comment when duplicating var comment = "Comment"; //copy contacts (yes or no) var copyContacts = true; //mark the lead as a duplicate PublicAPI.CRM.Lead.Dublicate(lead, contractor, comment, copyContacts);
See Also