Make Webhook Not Merging Duplicate Leads in Kommo

I’m using Make and a webhook from Kommo, placing {{first(lead.id)}} in the Lead ID field so that it fetches the lead and merges duplicate leads into a single one in Kommo, but it’s not working

You must place {{first(lead[].id)}} in the Lead ID field within the Update Lead module.

Explanation:

The Lead ID is the unique identifier of the lead that will be updated.
Since “Search for Leads” returns multiple IDs, you use {{first(lead[].id)}} to select the first Lead ID found, ensuring the update module applies changes to the correct lead.

Step-by-Step:

  1. Open the Update Lead module.
  2. In the Lead ID field, enter {{first(lead[].id)}}.
  3. In Custom Fields Values, enter only the values you want to update (e.g., phone number).
  4. Save and test the flow.

I’m using Make and a webhook from Kommo, placing {{first(lead[].id)}} in the Lead ID field so that it fetches the lead and merges duplicate leads into a single one in Kommo, but it’s not working.

blueprint (3).json (54.9 KB)

I’m placing {{first(lead[].id)}} in the Lead ID field of the Update Lead module in Kommo, but it’s not merging the lead.

[
    {
        "id": 11828484,
        "updated_at": "2025-03-20T00:06:07.000Z",
        "_links": {
            "self": {
                "href": "https://axp.kommo.com/api/v4/leads/11828484"
            }
        }
    }
]

Hey there,

could you please clarify a bit what you are trying to do here? Your explanation is not very clear. Maybe some screenshots of the entire flow and/or input and output bundles will help.

Form the screenshot it self → the Lead ID is not an array. So doing first() on it wont do anything.

Best guess is you have a search module and you are trying to remove duplicates from the output? You will need an aggregator module after it to turn it in an array and then use the deduplicate() function on it.

1 Like