M
M
Magnet192019-07-08 09:59:04
1C-Bitrix
Magnet19, 2019-07-08 09:59:04

How to get transaction ID by phone number and transaction direction?

How to get transaction ID by phone number and transaction direction?
Let's say there is a deal, we need to find out the deal ID by phone number or other fields.
Documentation https://dev.1c-bitrix.ru/rest_help/crm/cdeals

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey Panteleev, 2019-07-09
@s_panteleev

Pass the required fields to the crm.deal.list method filter .
As a result, you will be returned a list of objects that satisfy the filter, if you are sure that only one deal will be suitable for the number + direction fields, then just take the first object from the list, but consider the option if several are returned

N
newdanish, 2019-07-09
@newdanish

There are no phone numbers in deals
First, find a company or contact using findbycomm
https://dev.1c-bitrix.ru/rest_help/crm/auxiliary/d...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question