1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-01-26 05:37:27 +02:00
2024-08-20 13:11:21 +03:00

4.0 KiB

sidebar_position
4

Gets a custom task field

Get custom task field data

Function GetCustomTaskField(Val URL, Val FieldID, Val Token = "") Export

Parameter CLI option Type Description
URL --url String URL of webhook or a Bitrix24 domain, when token used
FieldID --fieldid String, Number Field ID for retrieval
Token --token String Access token, when app auth method used

Returns: Map Of KeyAndValue - serialized JSON of answer from Bitrix24 API


:::tip Method at API documentation: task.item.userfield.get :::

    URL     = "https://b24-ar17wx.bitrix24.by/rest/1/1o2...";
    FieldID = "255";

    Result = OPI_Bitrix24.GetCustomTaskField(URL, FieldID);

    URL     = "b24-ar17wx.bitrix24.by";
    Token   = "ec4dc366006e9f06006b12e400000001000...";
    FieldID = "257";

    Result = OPI_Bitrix24.GetCustomTaskField(URL, FieldID, );
    
  oint bitrix24 GetCustomTaskField --url "b24-ar17wx.bitrix24.by" --fieldid "257" --token "fe3fa966006e9f06006b12e400000001000..."

{
  "result": {
  "ID": "261",
  "ENTITY_ID": "TASKS_TASK",
  "FIELD_NAME": "UF_TEXT_FIELD",
  "USER_TYPE_ID": "string",
  "XML_ID": "NEW_TEXT_FIELD",
  "SORT": "100",
  "MULTIPLE": "N",
  "MANDATORY": "N",
  "SHOW_FILTER": "N",
  "SHOW_IN_LIST": "Y",
  "EDIT_IN_LIST": "Y",
  "IS_SEARCHABLE": "N",
  "SETTINGS": {
  "SIZE": 20,
  "ROWS": 1,
  "REGEXP": "",
  "MIN_LENGTH": 0,
  "MAX_LENGTH": 0,
  "DEFAULT_VALUE": ""
  },
  "EDIT_FORM_LABEL": {
  "ar": "",
  "br": "",
  "de": "",
  "en": "Updated field",
  "fr": "",
  "id": "",
  "it": "",
  "ja": "",
  "la": "",
  "ms": "",
  "pl": "",
  "ru": "Izmenennoe pole",
  "sc": "",
  "tc": "",
  "th": "",
  "tr": "",
  "ua": "",
  "vn": ""
  },
  "LIST_COLUMN_LABEL": {
  "ar": "Text field",
  "br": "Text field",
  "de": "Text field",
  "en": "Text field",
  "fr": "Text field",
  "id": "Text field",
  "it": "Text field",
  "ja": "Text field",
  "la": "Text field",
  "ms": "Text field",
  "pl": "Text field",
  "ru": "Text field",
  "sc": "Text field",
  "tc": "Text field",
  "th": "Text field",
  "tr": "Text field",
  "ua": "Text field",
  "vn": "Text field"
  },
  "LIST_FILTER_LABEL": {
  "ar": "Text field",
  "br": "Text field",
  "de": "Text field",
  "en": "Text field",
  "fr": "Text field",
  "id": "Text field",
  "it": "Text field",
  "ja": "Text field",
  "la": "Text field",
  "ms": "Text field",
  "pl": "Text field",
  "ru": "Text field",
  "sc": "Text field",
  "tc": "Text field",
  "th": "Text field",
  "tr": "Text field",
  "ua": "Text field",
  "vn": "Text field"
  },
  "ERROR_MESSAGE": {
  "ar": "Text field",
  "br": "Text field",
  "de": "Text field",
  "en": "Text field",
  "fr": "Text field",
  "id": "Text field",
  "it": "Text field",
  "ja": "Text field",
  "la": "Text field",
  "ms": "Text field",
  "pl": "Text field",
  "ru": "Text field",
  "sc": "Text field",
  "tc": "Text field",
  "th": "Text field",
  "tr": "Text field",
  "ua": "Text field",
  "vn": "Text field"
  },
  "HELP_MESSAGE": {
  "ar": "Text field",
  "br": "Text field",
  "de": "Text field",
  "en": "Text field",
  "fr": "Text field",
  "id": "Text field",
  "it": "Text field",
  "ja": "Text field",
  "la": "Text field",
  "ms": "Text field",
  "pl": "Text field",
  "ru": "Text field",
  "sc": "Text field",
  "tc": "Text field",
  "th": "Text field",
  "tr": "Text field",
  "ua": "Text field",
  "vn": "Text field"
  }
  },
  "total": 0,
  "time": {
  "start": 1722114797.9059,
  "finish": 1722114797.92375,
  "duration": 0.0178542137145996,
  "processing": 0.000695943832397461,
  "date_start": "2024-07-27T21:13:17+00:00",
  "date_finish": "2024-07-27T21:13:17+00:00",
  "operating_reset_at": 1722115397,
  "operating": 0
  }
  }