lists.field.delete
Scope: catalog Permissions to execute: for all
lists.field.delete (params, fields)
This method deletes the list field. Returns true on success, otherwise throws an exception.
Parameters
Parameter | Description | ||||||
---|---|---|---|---|---|---|---|
IBLOCK_TYPE_ID | information block type ID (required):
IBLOCK_CODE/IBLOCK_ID | code or ID for information block (required); | SOCNET_GROUP_ID | group ID (required, for a group list); | FIELD_ID | Field ID. (required. If information block property field, then format is: "PROPERTY_propertyId") | |
Example
var params = { 'IBLOCK_TYPE_ID': 'lists_socnet', 'IBLOCK_CODE': 'rest_1', 'FIELD_ID': 'PROPERTY_61' }; BX24.callMethod( 'lists.field.delete', params, function(result) { if(result.error()) alert("Error: " + result.error()); else alert("Success: " + result.data()); } );
© «Bitrix24», 2001-2024