Dropdown Menu Item of the Top Button in the CRM Robot Designer CRM_XXX_ROBOT_DESIGNER_TOOLBAR

Scope: intranet

You can add your dropdown menu item to the top button of the robot designer in CRM entities: leads, deals, new invoices, custom entity types.

Widget as a Dropdown Menu Item of the Top Button in the Robot Designer

The specific widget placement code is specified in the PLACEMENT parameter of the placement.bind method.

The widget will not be displayed in the interface until the application installation is complete. Check the application installation

Where the Widget is Embedded

Widget Code

Location

CRM_LEAD_ROBOT_DESIGNER_TOOLBAR

Dropdown menu item of the top button in the lead

CRM_DEAL_ROBOT_DESIGNER_TOOLBAR

Dropdown menu item of the top button in the deal

CRM_SMART_INVOICE_ROBOT_DESIGNER_TOOLBAR

Dropdown menu item of the top button in the new invoices

CRM_DYNAMIC_XXX_ROBOT_DESIGNER_TOOLBAR

Dropdown menu item of the top button in custom CRM entity types. Replace XXX with the numeric identifier of the specific custom entity type. For example, CRM_DYNAMIC_183_LIST_MENU

What the Handler Receives

Data is transmitted as a POST request


        Array
        (
            [DOMAIN] => xxx.bitrix24.com
            [PROTOCOL] => 1
            [LANG] => en
            [APP_SID] => 2ce63de88c4a9f5843e148d6f7b7a6ed
            [AUTH_ID] => d54fba6600631fcd00005a4b00000001f0f1073f6f5fc879c485f124cc572c68a6ee17
            [AUTH_EXPIRES] => 3600
            [REFRESH_ID] => c5cee16600631fcd00005a4b00000001f0f107833fc0c197d37b9b13905b691787bbdb
            [member_id] => da45a03b265edd8787f8a258d793cc5d
            [status] => L
            [PLACEMENT] => CRM_LEAD_ROBOT_DESIGNER_TOOLBAR
        )
        
        

        Array
        (
            [DOMAIN] => xxx.bitrix24.com
            [PROTOCOL] => 1
            [LANG] => en
            [APP_SID] => aa01af1bd7f74d944ab61bdc8ed4f011
            [AUTH_ID] => ec4fba6600631fcd00005a4b00000001f0f107219e88649824f5ded51f56111616561c
            [AUTH_EXPIRES] => 3600
            [REFRESH_ID] => dccee16600631fcd00005a4b00000001f0f107021a4718dc94fa53f048dac305baff48
            [member_id] => da45a03b265edd8787f8a258d793cc5d
            [status] => L
            [PLACEMENT] => CRM_DEAL_ROBOT_DESIGNER_TOOLBAR
        )
        
        

        Array
        (
            [DOMAIN] => xxx.bitrix24.com
            [PROTOCOL] => 1
            [LANG] => en
            [APP_SID] => 551f45b6c2344572c396f678b19b9fd2
            [AUTH_ID] => 9c44d0670076a4b8006f518000000001201c07653252db32225bf0a643c676de22ba44
            [AUTH_EXPIRES] => 3600
            [REFRESH_ID] => 8cc3f7670076a4b8006f518000000001201c07f2d093e0a9e3af54d1c1bd9f51b39b95
            [member_id] => e8857f161a1a8288f312b6cc6ad67995
            [status] => L
            [PLACEMENT] => CRM_SMART_INVOICE_ROBOT_DESIGNER_TOOLBAR
        )
        
        

        Array
        (
            [DOMAIN] => xxx.bitrix24.com
            [PROTOCOL] => 1
            [LANG] => en
            [APP_SID] => c1ec1ec90542fe796fe8868c4da3c482
            [AUTH_ID] => 9745d0670076a4b8006f518000000001201c070f6ab1c3c782c839d8c502019162ff5a
            [AUTH_EXPIRES] => 3600
            [REFRESH_ID] => 87c4f7670076a4b8006f518000000001201c078c7f1717892822ebf3ef37611b566015
            [member_id] => e8857f161a1a8288f312b6cc6ad67995
            [status] => L
            [PLACEMENT] => CRM_DYNAMIC_183_ROBOT_DESIGNER_TOOLBAR
        )
        
        

Required parameters are marked with *

Parameter
type

Description

DOMAIN*
string

The Bitrix24 address where the widget handler was invoked

PROTOCOL*
string

Secure or non-secure HTTP protocol:

  • 0 - HTTP
  • 1 - HTTPS

LANG*
string

The user interface language of Bitrix24 that invoked the widget. You can localize the interface language in your widget based on this value

APP_SID
string

String identifier of the application that registered the widget handler

AUTH_ID
string

Authorization token OAuth 2 issued for the user who invoked the widget. Can be used for REST API calls on behalf of this user

AUTH_EXPIRES
integer

Time in seconds after which the authorization token will become invalid

REFRESH_ID
string

Refresh token OAuth 2 issued for the user who invoked the widget. Can be used to refresh the authorization token on behalf of this user

member_id*
string

Unique string identifier of Bitrix24 where the widget handler was invoked.

status
string

Type of application that registered the handler for this widget. Accepts values:

PLACEMENT*
string

Code for the widget embedding location. You can use the same handler URL for all your widgets. The value that Bitrix24 will report in the PLACEMENT parameter will help determine from which specific widget embedding location your handler was invoked in each case

PLACEMENT_OPTIONS
string

Additional data in the form of a JSON string that defines the context of the widget execution. For example, this could be an array containing the numeric identifier of the CRM entity in the detail form where the widget handler was invoked, etc. The PLACEMENT_OPTIONS parameter, along with the PLACEMENT parameter, allows you to accurately determine for which specific widget embedding location and object the widget handler was invoked.

PLACEMENT_OPTIONS

In the current widget, the PLACEMENT_OPTIONS parameter is not passed.

Continue Learning