lists.element.delete
lists.element.delete (params)
This method deletes a list element. Returns true on success, otherwise throws an exception.
Parameters
Parameter | Description |
---|---|
IBLOCK_TYPE_ID | information block ID (required):
|
IBLOCK_CODE/IBLOCK_ID | code or ID of information block (required) |
ELEMENT_CODE/ELEMENT_ID | code or ID of an element |
SOCNET_GROUP_ID | group 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