App Configurations in BX24.JS: Methods Overview
If you are developing integrations for Bitrix24 using AI tools (Codex, Claude Code, Cursor), connect to the MCP server so that the assistant can utilize the official REST documentation.
Two objects are used to work with app configurations:
BX24.userOption— works with the current user's configurations. Setting a user configuration value takes effect immediatelyBX24.appOption— works with general app configurations. App configurations may require a completion handler, thecallbackparameter in BX24.appOption.set
Quick navigation: All Methods
Operating Conditions
- The
BX24.userOptionandBX24.appOptionfunctions are available in the app after the library is initialized via the BX24.init method BX24.userOptionreads and retains the current user's configurationsBX24.appOptionreads and retains the general configurations of the current app- Saving general app configurations is only available to users with app management permissions. Before calling BX24.appOption.set, verify permissions using the BX24.isAdmin method
How to Choose a Configuration Object
|
If needed |
Use |
|
Save setting only for the current user |
|
|
Read current user setting |
|
|
Save global application setting |
|
|
Read global application setting |
Getting Started
- Initialize the library using the BX24.init method
- If an app configuration is required, verify administrator permissions using the BX24.isAdmin method
- Retain the value using the
setmethod - Retrieve the value using the
getmethod
Overview of Methods
|
Method |
Description |
|
Sets settings for the current user |
|
|
Returns settings for the current user |
|
|
Sets global settings for the current application |
|
|
Returns setting by its code |
Was the article helpful?
Previous