Documentation

catalog.document.fields

Scope: catalog Permissions to execute: for all

Attention! Starting from version 22.400.0 the method has been deprecated. It's recommended to use the method catalog.document.getFields.

catalog.document.fields()

Method returns list of item fields.

Parameters

No parameters.

Example

BX24.callMethod(
    'catalog.document.fields', 
    {}, 
    function(result)
    {
        if(result.error())
            console.error(result.error());
        else
            console.log(result.data());
    }
);
$result = CRest::call(
    'catalog.document.fields'
);

echo '<pre>';
print_r($result);
echo '</pre>';

Returned fields

Field DescriptionTypeNote
ID Identifierinteger
docType Item typechar
siteId Site associationchar
contractorId Supplierinteger
responsibleId ResponsibleintegerRequired
dateModify Date modifieddatetime
dateCreate Date createddatetime
createdBy Created byinteger
modifiedBy Modified byinteger
currency CurrencycharRequired
status Statuschar
dateStatus Date of set statusdatetime
dateDocument Item datedatetime
statusBy Who set statusinteger
total Product total amountdouble
commentary Commentchar

© «Bitrix24», 2001-2024