Get the BX24.proxy Function
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 BX24.proxy method creates a proxy function for calling func in the context of thisObject. This method is similar to BX.proxy. When called again with the same func and thisObject, it returns the same proxy function.
Function BX24.proxy(Function func, Object thisObject)
Parameters
Required parameters are marked with *
|
Name |
Description |
|
func* |
The original function for which the proxy is created |
|
thisObject* |
The object that will be used as |
Code Example
How to Use Examples in Documentation
BX24.init(function () {
const context = {
value: 10,
print: function (step) {
console.log(this.value + step);
}
};
const proxy = BX24.proxy(context.print, context);
proxy(5); // 15
});
Response Handling
The method synchronously returns a result of type function.
Returned Data
|
Name |
Description |
|
result |
Proxy function for calling |