1b.app
Link copied -

fix api/contact-add/ (creating a duplicate contact)

each execution of this query leads to the creation of an extra company
https://crm.swisstrade.com.ua/api/contact-add/json/?login=хххх&password=хххх...
as a result, a contact card is created, linked to a company with id 32730
And another contact card is created with the name of the contact with id 32730

The problem is observed with other companies as well.
I ask you to either correct it or indicate where to look (I turned off automation when saving a contact - it didn’t help)
Original question is available on version: ru

Answers:

So everything is right)
Company with id 32730 is not found - creates a new one.
Do you need to create separate companies?
Use extra. parameter - indicate clearly that this is a company

If you need to bind a user to a company when creating, use either the existing company id or its name
05.01.2021, 09:08
Original comment available on version: ru

So everything is right)
Company with id 32730 is not found - creates a new one.
Do you need to create separate companies?
Use extra. parameter - indicate clearly that this is a company

If you need to bind a user to a company when creating, use either the existing company id or its name
05.01.2021, 09:08
Original comment available on version: ru

Перегиняк Александр
Oneboxconsulting (интегратор)

Gubko Alexander Sergeevich
Employee wrote:
Company with id 32730 is not found - creates a new one.

why doesn't it find it? because it is https://crm.swisstrade.com.ua/admin/shop/users/32730/
and her type is "company", and not something else
that's just the point that there is a company with such id. For some reason, the search by company id does not work in the api
05.01.2021, 11:23
Original comment available on version: ru

Please join the conversation. If you have something to say - please write a comment. You will need a mobile phone and an SMS code for identification to enter. Log in and comment