# Updating a Lead in Kommo fails

**URL:** <https://community.make.com/t/updating-a-lead-in-kommo-fails/56568>\
**Category:** Questions\
**Tags:** arrays, error, mapping\
**Created:** [September 30, 2024, 8:05pm UTC](https://community.make.com/t/updating-a-lead-in-kommo-fails/56568 "2024-09-30T20:05:18Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Juano\_Holograma](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/juano_holograma/32/50726_2.png) [@Juano\_Holograma](https://community.make.com/u/Juano_Holograma)\
**Post date:** [September 30, 2024, 8:05pm UTC](https://community.make.com/t/updating-a-lead-in-kommo-fails/56568/1 "2024-09-30T20:05:18Z")

</div>

Hi dear community!  
I’ve been trying to bring data from my website to update a lead in Kommo.  
The data I’m having trouble with is the date of an appointment. I’m sending this data through a webhook and is being received at make like this:

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/9/6/9629cb971619218dc66e365aa84a74e51326df61.png)

Then I use the “Search contact” module from Kommo to get the lead, after that I want to update the lead, but the date comes on YYYY-MM-DD HH:mm:ss format, so I transform it to UNIX (used in Kommo) with this formula: formatDate(parseDate(1.cita; “YYYY-MM-DD HH:mm:ss”); “X”)

I can’t get this value to update at kommo, this is how I’m trying to update the “field ID” “Cita”

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/b/5/b5a4eccad9fe3463fea5ab1f0d0d79bf685237fe.png)

looking at the Operation Error, I get “[400] Bad Request Request validation failed” like so

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/5/3/53fc27a88797aefb18f4acab8305b4f5ce08d2d0.png)

And it looks like the value is not being processed as collection as it should  
here’s the data retreived from “Search Contacts” module

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/4/4/44992c03db250340024de13ce2e093ec5a8d8a0d.png)

Please Help  
What I’m doing wrong?

---

<div class="post-metadata">

**Author:** ![Benjamin\_from\_Make](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/benjamin_from_make/32/37894_2.png) [@Benjamin\_from\_Make](https://community.make.com/u/Benjamin_from_Make)\
**Post date:** [October 1, 2024, 6:15am UTC](https://community.make.com/t/updating-a-lead-in-kommo-fails/56568/2 "2024-10-01T06:15:46Z")

</div>

Hello!

Welcome to the Make community!

I just finished a few tests. It’s possible that the issue is not with the custom field, it could be the fact that the ID of the contact is sent as a “String” and not an “Integer”.

Can you try to add parseNumber to the ID you map? Like this (I tested with the LEAD object)

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/7/2/726812484815b25507c3c3c3d5f1daf5c098b494.png)

Benjamin

---

<div class="post-metadata">

**Author:** ![JhonyAlx](https://avatars.discourse-cdn.com/v4/letter/j/9d8465/32.png) [@JhonyAlx](https://community.make.com/u/JhonyAlx)\
**Post date:** [December 9, 2024, 6:24am UTC](https://community.make.com/t/updating-a-lead-in-kommo-fails/56568/3 "2024-12-09T06:24:47Z")

</div>

I have the same problem

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/8/5/8531c5faee690b504d556052e8860182fadcdcee.png)

---

<div class="post-metadata">

**Author:** ![Vladimir\_Kalkin](https://avatars.discourse-cdn.com/v4/letter/v/aeb1de/32.png) [@Vladimir\_Kalkin](https://community.make.com/u/Vladimir_Kalkin)\
**Post date:** [March 5, 2025, 10:56am UTC](https://community.make.com/t/updating-a-lead-in-kommo-fails/56568/4 "2025-03-05T10:56:16Z")

</div>

@Juano_Holograma  
This is a solution to your issue.

The issue is a string value “1746392400” you trying to input.

Kommo CRM **expects an integer** value for a “ **date and time** ” field, in the following format:

```auto
{"value": 1746392400 }

```

Not this format:  
`{"value": "1746392400" }`

---

<div class="post-metadata">

**Author:** ![Make\_Bot](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/make_bot/32/14661_2.png) [@Make\_Bot](https://community.make.com/u/Make_Bot)\
**Post date:** [June 3, 2025, 9:57am UTC](https://community.make.com/t/updating-a-lead-in-kommo-fails/56568/5 "2025-06-03T09:57:32Z")

</div>


