catalog.document.element.list
Scope: catalog Permissions to execute: for all
catalog.document.element.list(order, filter, select, offset, limit)
Method gets list of products in the inventory management items.
Returns list of items on in response body on success.
Parameters
Parameter | Type | Description |
---|---|---|
order | array | Sorting. |
filter | array | Filter. |
select | array | List of retrieved fields. |
offset | integer | Selection page, operates the same as start. |
start | string | Print page number. Works for https queries. |
limit | integer | Page size from 1 to 500 (when set to 0 or higher than maximum, uses the default value 50). |
Example
BX24.callMethod( 'catalog.document.element.list', { 'order': { 'ID': 'ASC', }, 'filter': { '>ID': 0, }, 'offset': 0, 'limit': 50, }, function(result) { if(result.error()) console.error(result.error()); else console.log(result.data()); } );
$result = CRest::call( 'catalog.document.element.list', [ 'order' => [ 'ID' => 'ASC', ], 'filter' => [ '>ID' => 0, ], 'offset' => 0, 'limit' => 5, ] ); echo '<pre>'; print_r($result); echo '</pre>';
© «Bitrix24», 2001-2024