Documentation

crm.invoice.status.update

crm.invoice.status.update(id, fields)

Updates an existing invoice status.

Parameters

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

Example

var id = prompt("Enter ID");
	BX24.callMethod(
		"crm.invoice.status.update",
		{
			"id": id,
			"fields":
			{
				"NAME": "TEST_UPDATE"
			}
		},
		function(result)
		{
			if(result.error())
				console.error(result.error());
			else
			{
				console.info(result.data());
			}
		}
	);




© «Bitrix24», 2001-2022
Up