MergeLeads()

Merge leads into a single lead. Not able to merge in CRM.

Parameters

Lead_Id

SQL_INTEGER(unsigned).

The ID of the lead record that will be primary. In the event of clashing fields, information from this record will be used.

Lead_Ids

SQL_VARCHAR(256).

A comma separated list of lead IDs to merge into the primary lead ID.

Returns

The procedure returns a single-row table with the following column:

Success

SQL_BIT

1 for success, 0 for failure.