Documentation

catalog.product.download

catalog.product.download(fileld, productId, fieldName)

The method downloads files of a commercial catalog product using passed parameters.

When successful, returns true in the response body.

Parameters

ParameterType Description
fileIdstring Registered file number.
productIdstring Commercial catalog product number.
fieldNamestring Field name (Property or field of information block element) that stores file.

Examples

BX24.callMethod(
    'catalog.product.download', 
	{       
		fileId: 79
		productId: 8,
		fieIdName: 'property98'
    },
    function(result) {
        if (result.error())
            console.error(result.error().ex);
        else
            console.log(result.data());
    });
© «Bitrix24», 2001-2024