---
sidebar_position: 7
description: Get lead filter structure and other functions to work with Bitrix24 in the Open Integration Package, a free open-source integration library for 1C:Enterprise 8, OneScript and CLI
keywords: [1C, 1С, 1С:Enterprise, 1С:Enterprise 8.3, API, Integration, Services, Exchange, OneScript, CLI, Bitrix24]
---

import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';

# Get lead filter structure
 Returns the field structure for filtering leads in the GetLeadsList method



`Function GetLeadFilterStructure(Val Clear = False) Export`

  | Parameter | CLI option | Type | Required | Description |
  |-|-|-|-|-|
  | Clear | --empty | Boolean | &#x2716; | True > structure with empty valuse, False > field descriptions at values |

  
  Returns:  Structure Of KeyAndValue - Fields structure



```bsl title="1C:Enterprise/OneScript code example"
    Clear  = False;
    Result = OPI_Bitrix24.GetLeadFilterStructure(Clear);
```
 

 <Tabs>
  
    <TabItem value="bash" label="Bash" default>
        ```bash
            oint bitrix24 GetLeadFilterStructure \
             --empty false
        ```
    </TabItem>
  
    <TabItem value="bat" label="CMD/Bat" default>
        ```batch
            oint bitrix24 GetLeadFilterStructure ^
             --empty false
        ```
    </TabItem>
</Tabs>


```json title="Result"
{
 "ID": "<lead identifier>",
 "ASSIGNED_BY_ID": "<responsible person identifier>",
 "COMPANY_ID": "<company identifier>",
 "COMPANY_TITLE": "<company name>",
 "CONTACT_ID": "<contact identifier>",
 "CREATED_BY_ID": "<author identifier>",
 "CURRENCY_ID": "<currency identifier>",
 "DATE_CLOSED": "<closing date>",
 "DATE_CREATE": "<date of creation>",
 "DATE_MODIFY": "<date of change>",
 "EMAIL": "<email address>",
 "HAS_EMAIL": "<Email is filled (Y|N)>",
 "HAS_PHONE": "***",
 "IS_RETURN_CUSTOMER": "<reused lead flag (Y|N)>",
 "MODIFY_BY_ID": "<author ID of the last change>",
 "MOVED_BY_ID": "<identifier of the author of moving the lead to the current stage>",
 "MOVED_TIME": "<date of moving the lead to the current stage>",
 "OPENED": "<feature is available for all (Y|N)>",
 "OPPORTUNITY": "<expected amount>",
 "STATUS_ID": "<status identifier>",
 "TITLE": "<lead name (can be searched using the template [%_])>"
}
```
