Set Configurations for a User BX24.userOption.set

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.userOption.set(string name, mixed value): void;
        

The BX24.userOption.set method sets the value of the value configuration with the name name for the current user. The value is applied immediately.

Method Parameters

Required parameters are marked with *

Name
type

Description

name*
string

Parameter code

value*
any

Parameter value

Code Example

BX24.init(() => {
            BX24.userOption.set('param_str', 'str');
            BX24.userOption.set('param_numb', 1);
            BX24.userOption.set('param_obj', {foo: 'bar'});
        });
        

How to Use Examples in Documentation

Return Value

The method returns nothing.

Continue Learning