Documentation

crm.product.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 description of list methods.

Example

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


© «Bitrix24», 2001-2024