Documentation

catalog.section.list

Scope: catalog Permissions to execute: for all

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

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.
startstring Retrieved page number. Works for https queries.


Examples

For JS

BX24.callMethod(
	'catalog.section.list',
	{
		select:{
			id
		},
		filter:{
			iblockId: "24",
			id: 68
		},
		order:{
			id: ASC
		},
		start: 1
	},
	function(result)
	{
		if(result.error())
			console.error(result.error().ex);
		else
			console.log(result.data());
		result.next();
	}
);

For HTTPS

https://your_account/rest/catalog.section.list?auth=_auth_key_&start=50
© «Bitrix24», 2001-2024
Up