A
A
Alexander2021-07-23 09:54:48
1C-Bitrix
Alexander, 2021-07-23 09:54:48

How to update an existing lead in Bitrix24 via API?

How can I update an existing lead in Bitrix24 via API?

There is a site on 1C Bitrix (BUS) business edition, the site has integration between 1C Bitrix (BUS) and the boxed version of Bitrix24.

Applications are created through a custom component based on a web form and saved in the web form section on the side of the BUS.
In the settings of the web form module on the BUS side, we have the Bitrix24 address specified

60fa6780c74a6835804925.jpeg

. Applications are sent to Bitrix24 where they are saved as a lead. On the Bitrix24 side, leads are formed for applications from the site.

The problem is that every time a user edits his application on the BUS side in Bitrix24, a new lead is created. That is, the same user creates several leads, while it is necessary that when the data on the application changes, the lead information is simply updated.

How to properly integrate a web form on 1C Bitrix (BUS) and the Bitrix24 service so that when editing a new application on the side of BUS, you can update an existing lead?

As I think, it is necessary to save the received lead id and then check it with each request to Bitrix24, but how to properly implement such a check?

Do I need to use the Bitrix24 Webhook API, or is there another option? If you need to use Webhook, do you need additional settings on the Bitrix24 side and on the server side?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Nikolaev, 2021-07-23
@gromdron

How can I update an existing lead in Bitrix24 via API?

Use REST: dev.1c-bitrix.ru/rest_help/
The problem is that every time a user edits his application on the BUS side in Bitrix24, a new lead is created. That is, the same user creates several leads, while it is necessary that when the data on the application changes, the lead information is simply updated.

The simple web service that you indicated in the screenshot performs one function: creating a lead based on the information received.
It does not know how to update or delete leads, as well as identify duplicates or search for existing ones.
How to properly integrate a web form on 1C Bitrix (BUS) and the Bitrix24 service so that when editing a new application on the side of BUS, you can update an existing lead?

Usually, integrations are developed and they themselves determine a set of parameters by which they determine whether the lead is new or existing and whether it is necessary to update or create a new lead.
The regular tool does not allow this.
If you need to use Webhook, do you need additional settings on the Bitrix24 side and on the server side?

No, not needed. On the side of Bitrix24, it is enough to create a webhook, but on the side of the site, you will have to write it

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question