crm.currency.update
crm.currency.update(id, fields)
Updates the specified (existing) currency.
Parameters
Parameter | Description |
---|---|
id | Specifies the ID of the currency. |
fields | An array in format array("field"=>"value"[, ...]) containing values of the currency fields must be updated. The fields can be one or more of those returned by crm.currency.fields.
Note: to find out the required field format, execute the method crm.currency.fields to view the retrieved field format. |
Example
var id = prompt("Enter ID"); BX24.callMethod( "crm.currency.update", { id: id, fields: { "AMOUNT_CNT": 1, "AMOUNT": 112.10, "SORT": 9000 } }, function(result) { if(result.error()) console.error(result.error()); else { console.info(result.data()); } } );
© «Bitrix24», 2001-2024