Documentation

lists.element.delete

lists.element.delete (params)

This method deletes a list element. Returns true on success, otherwise throws an exception.

Parameters

ParameterDescription
IBLOCK_TYPE_ID information block ID (required):
  • lists - information block type for lists
  • bitrix_processes - information block type for processes
  • lists_socnet - information block type for workgroup lists
IBLOCK_CODE/IBLOCK_IDcode or ID of information block (required)
ELEMENT_CODE/ELEMENT_IDcode or ID of an element
SOCNET_GROUP_IDgroup ID (required, if list is created for group);

Example

var params = {
        'IBLOCK_TYPE_ID': 'lists_socnet',
        'IBLOCK_CODE': 'rest_1',
        'ELEMENT_CODE': 'element_1'
    };
    BX24.callMethod(
        'lists.element.delete',
        params,
        function(result)
        {
            if(result.error())
                alert("Error: " + result.error());
            else
                alert("Success: " + result.data());
        }
    );


© «Bitrix24», 2001-2024