Skip to content

Latest commit

 

History

History
26 lines (18 loc) · 695 Bytes

using-filters-and-additional-parameters.md

File metadata and controls

26 lines (18 loc) · 695 Bytes

Using filters and additional parameters

Define filters and additional parameters in any order using keyword arguments.

bx24 = Bitrix24('https://example.bitrix24.com/rest/1/33olqeits4avuyqu')

await bx24.callMethod('crm.deal.list',
                order={'STAGE_ID': 'ASC'},
                filter={'>PROBABILITY': 50},
                select=['ID', 'TITLE', 'STAGE_ID', 'PROBABILITY'])

You also can pass filters as a dictionary, similar to the original Bitrix24 API:

payload = {
    'order': {'STAGE_ID': 'ASC'},
    'filter': {'>PROBABILITY': 50},
    'select': ['ID', 'TITLE', 'STAGE_ID', 'PROBABILITY']
}

await bx24.callMethod('crm.deal.list', payload)