Documentation

crm.item.delivery.list

Scope: catalog Permissions to execute: for all

crm.item.delivery.list(entityId: number, entityTypeId: number, filter : ?{}, order: ?{})

This method gets list of deliveries.

Parameters

Parameter Description
entityId CRM entity ID.
entityTypeId CRM entity type ID according to CRM Constants.
filter List for filtering.
order List for sorting, with field containing a key and value - ASC or DESC.
startString type. How many first entries must be skipped in the result. The value must be divisible by 50 Due to technical restrictions this parameter value must be always divisible by 50. For example, in case of value 50, the result will show 51st entry and subsequent values and the first 50 entries will be skipped. . In case of value -1 disables the count.

Example

BX.callMethod(
	'crm.item.delivery.list',
	{
		entityId: 21,
		entityTypeId: 2,
	},
	function(result) 
	{
		if (result.error())
		{
			console.error(result.error().ex);
		}
		else
		{
			console.log(result.data());
		}
	}
);


© «Bitrix24», 2001-2024