Context Menu Item in USER_PROFILE_MENU
Scope:
user
You can add your item to the context menu in the profile.
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
|
Placement Code |
Location |
|
|
Context menu item in the profile |
What the handler receives
Data is transmitted as a POST request
Array
(
[DOMAIN] => xxx.bitrix24.com
[PROTOCOL] => 1
[LANG] => en
[APP_SID] => bbdb976c9f5d067b1d48d102ab17b995
[AUTH_ID] => ae70bb6600705a0700005a4b00000001f0f107ab19f75f907d2320df1129aa61f63efc
[AUTH_EXPIRES] => 3600
[REFRESH_ID] => 9eefe26600705a0700005a4b00000001f0f1078586205803785eca5262f6ff48e025ee
[member_id] => da45a03b265edd8787f8a258d793cc5d
[status] => L
[PLACEMENT] => USER_PROFILE_MENU
[PLACEMENT_OPTIONS] => {"USER_ID":"1"}
)
Required parameters are marked with *
|
Parameter |
Description |
|
DOMAIN* |
The Bitrix24 address where the widget handler was invoked |
|
PROTOCOL* |
Secure or non-secure HTTP protocol:
|
|
LANG* |
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 identifier of the application that registered the widget handler |
|
AUTH_ID |
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 |
Time in seconds after which the authorization token will become invalid |
|
REFRESH_ID |
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* |
Unique string identifier of Bitrix24 where the widget handler was invoked. |
|
status |
Type of application that registered the handler for this widget. Accepts values:
|
|
PLACEMENT* |
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_OPTIONS |
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
The value of PLACEMENT_OPTIONS is a JSON string containing an array of one or more keys.
Required parameters are marked with *
|
Parameter |
Description |
|
USER_ID* |
The identifier of the user whose profile the widget was opened in. This can be used to retrieve additional information using the user.get method. |
Continue your exploration
- Set Up the Widget Handler placement.bind
- Interaction with UI from Widgets
- Interaction with CRM Card
- Interactive Applications
- Open a Slider with Your Interface
- Open Standard Bitrix24 Pages from Application Widgets