catalog.document.element.update
Scope: catalog Permissions to execute: for all
catalog.document.element.update(id, fields)
Method updates an inventory management product.
Returns true
on success.
Parameters
Parameter | Type | Description |
---|---|---|
id | integer | Updated product ID. |
fields | array | Updated product parameters. |
Example
BX24.callMethod( 'catalog.document.element.update', { 'fields': { 'AMOUNT': 10, 'PURCHASING_PRICE': 25, } }, function(result) { if(result.error()) console.error(result.error()); else console.log(result.data()); } );
$result = CRest::call( 'catalog.document.element.update', [ 'id' => 11, 'fields' => [ 'AMOUNT' => 10, 'PURCHASING_PRICE' => 25, ], ] ); echo '<pre>'; print_r($result); echo '</pre>';
© «Bitrix24», 2001-2024