resetTask( )
Deprecated. This function is deprecated but will continue to work. To reset a task, see the wix-crm.v2.Tasks.updateTask() function.
-
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:
-
Add the new import statement:
Copy1 -
If you plan to migrate all functions that use
wixCrmBackend
, remove the originalimport wixCrmBackend
statement. -
Look for any code that uses
wixCrmBackend.tasks.removeTask()
, and replace it with withtasks.updateTask()
. To reset the task, set thestatus
field to"ACTION_NEEDED"
. -
Test your changes to make sure your code behaves as expected.
Resets a task as not completed.
The resetTask()
function returns a Promise that resolves to the ID of the
the task after it is reset as not completed.
ID of the task to reset.