Set Configurations for the BX24.appOption.set App

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
BX24.appOption.set(string name, mixed value[, Function callback]): void;
        

The BX24.appOption.set method sets general configurations for the current application.

Setting application configuration values is only available to users with application management permissions (see BX24.isAdmin). An on-completion handler may be required for application configurations (see parameter callback below).

Method Parameters

Required parameters are marked with *

Name
type

Description

name*
string

Parameter code

value*
any

Parameter value

callback
function

Callback after saving. The current application settings will be passed as an argument

Code Example

BX24.init(() => {
            BX24.appOption.set('param_str', 'str1', (params) => console.log(params));
            BX24.appOption.set('param_numb', 1);
        });
        

How to Use Examples in Documentation

Return Value

The method returns nothing. If the callback parameter is passed, current application settings will be passed as a function argument callback.

Continue Learning