Creates a new task.
All fields in the task
object are optional. If you don't pass any fields in the task
object, the function returns a task with the following core properties:
_id
_createdDate
_updatedDate
status
source
revision
function createTask(task: Task): Promise<Task>;
Task to create.
import { tasks } from "@wix/crm";
async function createTask(task) {
const response = await tasks.createTask(task);
}
There is 1 error with this status code.
This method may also return standard errors. Learn more about standard Wix errors.