Documentation

task.item.update

Attention! This method is deprecated and is no longer supported. It is recommended to use the methods tasks.task.*.

Updates task data. The following fields may be updated. Business logic and access permission rights are taken into account when updating task data.

For example: The person responsible cannot rename a task. An error will be generated in this case.

Prior to data update, it is recommended to check whether this action is allowed (task.item.isactionallowed).

Function parameters

ParameterDescription
TASKIDTask ID.
TASKDATAList of updated fields.

Attention! Compliance to parameter sequence in the query is mandatory. If sequence is not observed, the request will be executed with errors.

Example

BX24.callMethod(
   'task.item.update',
   [1, {TIME_ESTIMATE: 113}],
   function(result){
{
       console.info(result.data());
       console.log(result);
	}
); 

Example of writing values with CRM:

BX24.callMethod(
   'task.item.update',
   [1, {UF_CRM_TASK: ["L_4", "C_7", "CO_5", "D_10"]}],
   function(result)
	{
       console.info(result.data());
       console.log(result);
	}
); 

Numeric values are corresponding ID values. The value L_4 means binding to a lead task with ID = 4. Several such bindings can have single type, for example L_4, L_5.

  • L - lead
  • C - contact
  • CO - company
  • D - deal


© «Bitrix24», 2001-2024