Search.../

resetTask( )

Resets a task as not completed.

Description

The resetTask() function returns a Promise that resolves to the ID of the the task after it is reset as not completed.

Syntax

function resetTask(taskId: string): Promise<string>

resetTask Parameters

NAME
TYPE
DESCRIPTION
taskId
string

ID of the task to reset.

Returns

Fulfilled - ID of the task to set as not completed.

Return Type:

Promise<string>

Was this helpful?

Reset a task as not completed

Copy Code
1import {tasks} from 'wix-crm-backend';
2
3export function resetTask(taskId) {
4 return tasks.resetTask(taskId);
5}
6
7// Returns a promise that resolves to:
8// "3c9683ea-f6cc-470b-b0d1-2eb6b8cea912"