Documentation

crm.invoice.status.add

crm.invoice.status.add(fields)

Creates a new invoice status.

Parameters

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

Example

BX24.callMethod(
		"crm.invoice.status.add",
		{
			"fields":
			{
				"SORT": 105,
				"NAME": "TEST"
			}
		},
		function(result)
		{
			if(result.error())
				console.error(result.error());
			else
				console.info("New invoice status with ID" + result.data());
		}
	);



© «Bitrix24», 2001-2022
Up