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();      
    }
   }
  ); 


User Comments

User comments are not part of official documentation. Use information provided by other users in the comments at your own risk.

The User Comments section is not to be used as a feature discussion board. Only registered users can post comments. Your comment will be visible once it has been approved by the moderator.
© «Bitrix Inc.», 2001-2019, «Bitrix Inc.», 2019