catalog.userfield.document.update
catalog.userfield.document.update(documentId, fields)
Method updates custom field values for inventory objects.
Parameters
Parameter | Description | Available from version |
---|---|---|
documentId | Inventory object ID. | |
fields | Fields to be updated and their new values. Must contains documentType – [link=16714598]Inventory object types[/link]. |
Example
API uses fields names as field[field ID in database]
– for example, field287. Field ID can be determined using the method userfieldconfig.list.
BX24.callMethod( 'catalog.userfield.document.update', { documentId: 64, fields: { 'documentType': 'S', 'field287': 'new value' } }, function(result) { if(result.error()) console.error(result.error().ex); else console.log(result.data()); } );
© «Bitrix24», 2001-2024