Documentation

lists.field.get

Scope: catalog Permissions to execute: for all

lists.field.get (params)

This method returns field data. If successful, list of fields with data will be returned, otherwise, returns an empty array.

Parameters

ParameterDescription
IBLOCK_TYPE_ID information block type 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 for information block (required);
SOCNET_GROUP_IDgroup ID (required, for a group list);
FIELD_IDField ID. (If information block property field, then format is: "PROPERTY_propertyId". If not specified, response will contain data for all fields of specified list)

Example

    var params = {
        'IBLOCK_TYPE_ID': 'lists_socnet',
        'IBLOCK_CODE': 'rest_1'
    };
    BX24.callMethod(
        'lists.field.get',
        params,
        function(result)
        {
            if(result.error())
                alert("Error: " + result.error());
            else
                console.log(result.data());
        }
    );


© «Bitrix24», 2001-2024