Documentation

crm.productsection.list

Returns a list of filtered products. This is the implementation of the list method for product. The CATALOG_ID parameter is expected to be defined by the filter. Otherwise, products will be selected from the catalog by default.

Parameters

See the list method reference for the parameters.

Example

	var catalogId = prompt("Enter the catalog ID");
		BX24.callMethod(
			"crm.productsection.list", 
			{ 
				order: { "NAME": "ASC" },
				filter: { "CATALOG_ID": catalogId },
				select: [ "ID", "NAME" ]
			}, 
			function(result) 
			{
				if(result.error())
					console.error(result.error());
				else
				{
					console.dir(result.data());			
					if(result.more())
						result.next();						
				}
			}
		);	


© «Bitrix24», 2001-2024
Up