getTask( )


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

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.getTask().

To migrate to the new function:

  1. Add the new import statement:

    Copy
    1
  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.getTask(), and replace it with with tasks.getTask(). Update your code to work with the new getTask() call and response properties.

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

Gets a task by ID.

The getTask() function returns a Promise that resolves to the task with the given ID.

Method Declaration
Copy
Method Parameters
taskIdstringRequired

The ID of the task to get from the task list.

Returns
Return Type:Promise<Task>
Was this helpful?
Yes
No