Documentation

catalog.section.list

catalog.section.list(select, filter, order, navigation)

The method gets list of commercial catalog sections by filter.

If operation is successful, returns list of catalog section in response body. On receiving the list, you need to analyze such fields, as total and next. The array filter must pass iblockId, which will indicate the availability of elements that haven't yet been included into retrieved selection.

Parameters

ParameterType Description
selectobject Fields, corresponding to the available list of fields.
filterobject Fields, corresponding to the available list of fields.
orderobject Fields, corresponding to the available list of fields.
navigationstring Retrieved page number.


Examples

BX24.callMethod(
    'catalog.section.list', 
    { 
      select:{
		id
	  },
	  filter:{
		name: Битрикс
	  },
	  order:{
		id: ASC
	  },
     navigation: 1
    }, 
    function(result)
    {
        if(result.error())
            console.error(result.error().ex);
        else
            console.log(result.data());
});
© «Bitrix24», 2001-2024
Up