F
F
FinchRED2021-08-16 11:47:24
1C-Bitrix
FinchRED, 2021-08-16 11:47:24

Bitrix api. How to optimize a script (similar to searching for duplicates in a company)?

The problem is that I need to actually take all crm companies and compare whether the user field matches.
Matched send to the US.
Now I see it this way. getlist of all companies. Go through each and again filter all companies.
It just seems to me that this is somewhat wrong and the agent will load.
Are there smarter options?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Kudis, 2021-08-16
@kudis

Group all records by this field, displaying in the results only those with count > 1;
Here is a selection of all the companies you
need. And then, pass these companies to the RS according to the field values ​​from the previous request

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question