Introduction

 

With Tasks, site admins can efficiently create and manage tasks on a site. This enables site admins to organize and prioritize their daily activities, enhancing their customer relationship management. Tasks include activities such as follow up calls or emails, scheduling meetings with clients, tracking steps for customer onboarding, and more. Use tasks to organize and prioritize your work with Ascend by Wix.

The Tasks API allows you to:

  • Create and update tasks with the option to set a due date or to link the task to a contact.
  • Count the total amount of tasks, or count the amount of tasks based on provided filters. For example, you can count the number of tasks that are linked to a specific contact.
  • Retrieve tasks.
  • Prioritize your tasks by adjusting the display order.
  • Delete tasks you no longer need.

Before you begin

It is important to note the following before you start to code:

  • The dueDate field only accepts dates formatted as a JS Date object. This field doesn't work with functional testing as JSON doesn't accept Date objects.

To use the Tasks API, import tasks from wix-crm.v2:

Copy
1

Permissions information

Functions in the Tasks API are restricted and only run if you elevate permissions using the wix-auth elevate() function.

Warning: Elevating a function allows it to be called by any site visitor. Exercise caution to prevent security vulnerabilities.

Terminology

  • Task: A specific activity, action, or assignment that needs to be completed by a site admin.
  • Reminder notification: A notification that is sent if the task has a due date. The reminder is sent the day before the due date and on the due date.
Was this helpful?
Yes
No