Documentation

catalog.userfield.document.list

catalog.userfield.document.list(select, filter, order)

Method returns list of custom field values for inventory object fields.

Parameters

Parameter Description Available from version
select Array with fields to display. Must contain documentTypeInventory object types.
order List for determining order of display, where key is fields name and value – ASC or DESC.
filter List for filtration. Must contain documentType – [link=16714598]Inventory object types[/link].

Example

API uses the field name as field[field ID in database] – for example, field288. FIeld ID can be specified via the method userfieldconfig.list.

BX24.callMethod(
	'catalog.userfield.document.list',
	{
		select: [
			'documentType',
			'documentId',
			'field287',
			'field288',
			'field289',
		],
		filter:{
			'documentType' : 'S',
			'>=field287': 10,
		},
	},
	function(result)
	{
		if(result.error())
			console.error(result.error().ex);
		else
			console.log(result.data());
		result.next();
	}
);


© «Bitrix24», 2001-2025