G
G
Grisha Akimov2021-04-12 15:54:44
API
Grisha Akimov, 2021-04-12 15:54:44

Bitrix24 method not working?

I am working on an application for my Bitrix system. I'm trying to embed in a task module, but I'm having trouble getting the embed to actually work. Below is my javascript code that should handle the embed.

BX24.rest.callMethod(
    'placement.bind',
    params: {
        PLACEMENT: 'TASK_VIEW_TAB',
        HANDLER: '*URL FOR CODE WITHIN BITRIX SERVER*',
        TITLE: 'Test Tab',
        DESCRIPTION: 'Test Tab',
    }
);

Did I do something wrong in my code? This is the code that is configured to run when the application is installed. If that's all I need, I may be missing a step that actually installs the app (it's currently a private app).

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
IgorVader, 2021-04-12
@Saeraleis

The syntax is

BX24.callMethod(
    'placement.bind',
    {
        PLACEMENT: 'TASK_VIEW_TAB',
        HANDLER: '*URL FOR CODE WITHIN BITRIX SERVER*',
        TITLE: 'Test Tab',
        DESCRIPTION: 'Test Tab',
    }
);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question