Open Path in the BX24.openPath Slider
Choose a tool for developing with an AI agent:
- use Alaio Vibecode to build an app for Bitrix24 from a task description without knowing any programming language. The agent writes the code and deploys the app to a server, with no manual hosting setup
- use the MCP server to develop a REST API integration in your own project. The agent refers to the official REST documentation
The method BX24.openPath opens the specified path within Bitrix24 in a slider.
void BX24.openPath(String path[, Function callback])
For security reasons, this method does not work in the mobile application.
Parameters
Required parameters are marked with *
|
Name |
Description |
|
path* |
The path within Bitrix24. It starts with The numbers in the path are identifiers of specific objects. Substitute your own values for them:
|
|
callback |
Callback function. Invoked when there is an error opening the path or when the slider is closed |
To retrieve CRM object identifiers, use the list and creation methods, for example crm.item.list and crm.item.add. To retrieve an employee identifier, use user.get, and for a workgroup identifier use sonet_group.get.
Before opening, the SDK automatically adds service parameters to the path:
from=rest_placement&from_app={appId}.
Code Example
BX24.init(function () {
BX24.openPath('/crm/deal/details/5/', function (result) {
console.log(result);
});
});
How to Use Examples in Documentation
Response Handling
The method does not return data (void).
If a callback is provided, it receives a result object.
Callback Result
|
Name |
Description |
|
result |
Execution status: |
|
errorCode |
Error code. Passed only when |