Documentation

crm.measure.update

crm.measure.update(id, fields)

Updates an existing unit of measurement.

Parameters

Note: to find out the required field format, execute the method crm.measure.fields to view the retrieved field format.
Parameter Description
id Measurement unit ID.
fields Set of fields - is an array("updated field"=>"value"[, ...]), where "updated field" can have values, returned by the crm.measure.fields method.

Example

	var id = prompt("Enter ID");
var title = prompt("Enter a new title for a unit of measurement");
BX24.callMethod(
	"crm.measure.update",
	{
		id: id,
		fields: {
			"MEASURE_TITLE": title
		}
	},
	function (result)
	{
		if (result.error())
			console.error(result.error());
		else
			console.info(result.data());
	}
);





© «Bitrix24», 2001-2024