L
L
lucsieus2021-06-15 07:06:36
RESTful API
lucsieus, 2021-06-15 07:06:36

How to correctly specify the filter for displaying transactions with Bitrix24?

Good day everyone!

I'm trying to display some statistics from Bitrix in a telegram bot. Through the crm.deal.list method. And for this filter:

$queryData = http_build_query(array(
    'order'  =>[ 'STAGE_ID'  =>  'ASC'],
    'filter'  => [
        'STAGE_ID' => 'C16:NEW',
        'TITLE' => 'NV'
    ],
    'select'  =>  [ "*", "*", "*"]));
I did everything, but there is one problem. I can't figure out how to display all transactions whose name begins with a certain word.

For example, display all transactions that begin with - NV, etc.

Maybe someone knows and faced with such a situation?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
lucsieus, 2021-06-16
@lucsieus

Found the answer, filter:

$queryData = http_build_query(array(
    'order'  =>[ 'STAGE_ID'  =>  'ASC'],
    'filter'  => [
        'STAGE_ID' => $stage,
        '%TITLE' => $name
    ],
    'select'  =>  [ "*", "*", "*"]));

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question