Documentation

entity.item.get

Gets list of storage elements. List method.

User must have at least storage Read (R) permission.

Parameters

Parameter Description
ENTITY Required. Storage string ID.
SORT Similar to arOrder and arFilter parameters of the PHP method CIBlockElement::GetList (including filter and complex logic operations).
FILTER

Example

Call

BX24.callMethod('entity.item.get', {
 ENTITY: 'menu',
 SORT: {DATE_ACTIVE_FROM: 'ASC', ID: 'ASC'},
 FILTER: {
  '>=DATE_ACTIVE_FROM': dateStart,
  '<DATE_ACTIVE_FROM': dateFinish
 }
}, $.proxy(this.buildData, this));

Request

https://my.bitrix24.ru/rest/entity.item.get.json?=&ENTITY=menu&FILTER%5B%3CDATE_ACTIVE_FROM%5D=2013-07-01T00%3A00%3A00.000Z&FILTER%5B%3E%3DDATE_ACTIVE_FROM%5D=2013-06-24T00%3A00%3A00.000Z&SORT%5BDATE_ACTIVE_FROM%5D=ASC&SORT%5BID%5D=ASC&auth=723867cdb1ada1de7870de8b0e558679

Response

{"result":[{"ID":"838","TIMESTAMP_X":"2013-06-25T15:06:47+03:00","MODIFIED_BY":"1","DATE_CREATE":"2013-06-25T15:06:47+03:00","CREATED_BY":"1","ACTIVE":"Y","DATE_ACTIVE_FROM":"2013-07-01T03:00:00+03:00","DATE_ACTIVE_TO":"","SORT":"500","NAME":"\u0413\u0440\u0435\u0447\u043a\u0430 \u0432 \u043c\u0443\u043d\u0434\u0438\u0440\u0435","PREVIEW_PICTURE":null,"PREVIEW_TEXT":null,"DETAIL_PICTURE":null,"DETAIL_TEXT":null,"CODE":null,"ENTITY":"menu","SECTION":null,"PROPERTY_VALUES":{"dish":"813","price":"16"}}],"total":1}

Example of a call with a complex filter:

BX24.callMethod('entity.item.get', {
    ENTITY: 'menu',
    SORT: {DATE_ACTIVE_FROM: 'ASC', ID: 'ASC'},
    FILTER: {
        '1':{
            'LOGIC':'OR',
            'PROPERTY_MYPROP1':'value1',
            'PROPERTY_MYPROP2':'value2'
            }
    }
}); 


© «Bitrix24», 2001-2024