Get the Execution Context of the Proxy Function BX24.proxyContext
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.proxyContext returns the original context of the call within a proxy function created through BX24.proxy. Outside of such a call, the method returns null.
Object BX24.proxyContext()
Parameters
No parameters.
Code Example
How to Use Examples in Documentation
BX24.init(function () {
const context = {
onClick: function () {
console.log(BX24.proxyContext());
}
};
const button = document.getElementById('run-action');
BX24.bind(button, 'click', BX24.proxy(context.onClick, context));
});
Response Handling
The method synchronously returns a result of type object.
Returned Data
|
Name |
Description |
|
result |
The original context of the proxy function call. If the method is called outside of a proxy function, it returns |
Continue Learning
Was the article helpful?
Previous