Documentation

crm.productrow.list

Returns a list of filtered product items. This is the implementation of the list method for product items. Owner of product items is defined by the required fields OWNER_TYPE and OWNER_ID, where OWNER_TYPE is a single-symbol code of the (D - deal, L - lead) type and OWNER_ID is the ID.

Parameters

See description of list methods.

Example

 var ownerType = prompt("Enter owner type (D, L)");
  var ownerId = prompt("Enter owner ID");
  BX24.callMethod(
   ""crm.productrow.list"", 
   { 
    filter: 
    { 
     "OWNER_TYPE": ownerType, 
     "OWNER_ID": ownerId 
    }
   }, 
   function(result) 
   {
    if(result.error())
     console.error(result.error());
    else
    {
     console.dir(result.data());   
     if(result.more())
      result.next();      
    }
   }
  ); 


© «Bitrix24», 2001-2024