updateTaskFields( )


Deprecated. This function will continue to work, but a newer version is available at wix-crm.v2.Tasks.updateTask().

Migration Instructions

If this function is already in your code, it will continue to work. To stay compatible with future changes, migrate to wix-crm.v2.Tasks.updateTask().

To migrate to the new function:

  1. Add the new import statement:

    Copy
  2. If you plan to migrate all functions that use wixCrmBackend, remove the original import wixCrmBackend statement.

  3. Look for any code that uses wixCrmBackend.tasks.updateTaskFields(), and replace it with with tasks.updateTask(). Update your code to work with the new updateTask() call and response properties.

  4. Test your changes to make sure your code behaves as expected.

Updates the specified fields of an existing task.

The updateTaskFields() function returns a Promise that resolves to the ID of the the updated task after it has been successfully updated.

Only the properties passed in the TaskInfo object will be updated. All other properties will remain the same.

To remove a value from the task, pass its corresponding property with a value of null.

Method Declaration
Copy
Method Parameters
taskIdstringRequired

ID of the task to update.


taskInfoTaskInfoRequired

The information to update the task with.

Returns
Return Type:Promise<string>
Did this help?