Okay, let's break down how to filter Bitrix24 deals where a specific multi-select User Field has at least one value selected (i.e., is not empty).
The standard Bitrix24 filter interface sometimes lacks a direct "is not empty" option for multi-select fields. Here are the most reliable ways to achieve this:
Method 1: Using the Bitrix24 REST API (Most Reliable & Flexible)
This is the most robust method, especially if you need this filter for automation, reporting outside Bitrix, or custom development.
-
Identify the Field Code: You need the internal code of your multi-select user field.
- Go to CRM Settings -> Start Point -> Deals -> Fields.
- Find your custom multi-select field in the list.
- The code usually looks like
UF_CRM_XXXXXXXXXXXXX (e.g., UF_CRM_1678889991234). Note this code down.
-
Use the crm.deal.list API Method: You will call this method with a specific filter parameter.
-
Construct the Filter: The key is to filter for deals where the field is not equal to false. In the API, an empty multi-select field often evaluates to false or an empty array, which != false correctly targets.
- Filter Parameter:
filter
- Filter Condition:
"!UF_CRM_XXXXXXXXXXXXX": false (Replace UF_CRM_XXXXXXXXXXXXX with your actual field code). The ! prefix means "NOT".
-
Example API Call (using query string format for webhooks/REST clients):
https://your_portal.bitrix24.com/rest/your_userid/your_webhook_code/crm.deal.list.json?filter[!UF_CRM_1678889991234]=false&select[]=ID&select[]=TITLE
- Replace
your_portal.bitrix24.com, your_userid, your_webhook_code with your details.
- Replace
UF_CRM_1678889991234 with your field code.
- The
select[] parameters are optional, specifying which deal fields you want in the response.
How to Execute API Calls:
- REST Clients: Tools like Postman, Insomnia.
- Webhooks: Create an inbound webhook in Bitrix24 (Developer Resources -> Other -> Inbound webhook) and use the generated URL.
- Custom Scripts: PHP, Python, JavaScript (Node.js) using libraries to make HTTP requests.
- Bitrix24 Applications: Develop a custom application.
Method 2: Using a Helper Field and Business Process (UI Workaround)
If you need this filter frequently within the standard Bitrix24 interface and don't want to use the API directly, you can create a workaround:
-
Create a Helper Field:
- Go to CRM Settings -> Start Point -> Deals -> Fields.
- Add a new field:
- Name: e.g., "Multi-Field Has Value?"
- Type: List (or Boolean Yes/No)
- Options (for List type): "Yes", "No"
- Make sure it's filterable.
-
Create a Business Process:
- Go to CRM Settings -> Automation -> Business Processes -> Deals.
- Create a new template (or modify an existing one) that runs on Add and Change.
- Add a Condition: Check if your multi-select user field (
UF_CRM_XXXXXXXXXXXXX) is empty.
- Field: Your multi-select field
- Condition:
is empty
- If True (Field is Empty): Add an "Edit Document" action. Set your helper field ("Multi-Field Has Value?") to "No" (or the 'false' value for boolean).
- If False (Field is NOT Empty): Add another "Edit Document" action. Set your helper field ("Multi-Field Has Value?") to "Yes" (or the 'true' value for boolean).
- Save and activate the Business Process.
-
Run BP on Existing Deals (Important): This BP will only run automatically for new or updated deals. You'll need to manually run it on existing deals for the helper field to be populated correctly. You can do this via the Deals list view (select deals -> choose action -> run business process).
-
Filter in the UI: Now, go to the Deals list view, open the filter, add your "Multi-Field Has Value?" helper field, and set it to "Yes".
Pros & Cons:
- API Method:
- Pros: Direct, accurate, flexible, good for automation/integration.
- Cons: Requires technical knowledge or tools to execute API calls. Not directly usable in the standard filter UI without custom development.
- Helper Field + BP Method:
- Pros: Allows filtering directly within the standard Bitrix24 Deals list UI.
- Cons: Requires setup, adds an extra field, BP needs to run (potential delay, needs manual run for old deals), adds slight overhead to deal saving.
Choose the method that best fits your technical skills and how you intend to use the filter. For direct, accurate filtering, especially for integrations, the API method is generally preferred. For UI convenience, the Business Process workaround is viable.