Documentation

iblock.Element.get

iblock.Element.get(iblockId, elementId, select)

Method gets iblock element by its ID.

Parameters

ParameterDescription
iblockIdIblock ID. Required parameter.
elementIdElement ID. Required parameter.
selectSet of fields and properties for retrieval. You can get the fields 'ID', 'NAME', 'IBLOCK_SECTION_ID' from the method getElementEntityAllowedList and all iblock properties.

Note If you need to get other fields, you can create a custom controller.

Result format

{
    "result":
    {
        "element":
        {
            "ID":123,
            "NAME":"...",
            "SOME_PROPERTY":
            [
                {
                    "ID"quot;:456,
                    "VALUE":"...",
                    "DESCRIPTION":""
                },
            ]
        }
    }
}


© «Bitrix24», 2001-2024
Up