onLabelCreated( )


Triggered when a label is created.

Method Declaration
Copy
Method Parameters
eventLabelCreated

Information about the task that was created and metadata for the event.

An event fired when a label is created
JavaScript
Errors

This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Did this help?

onLabelDeleted( )


Triggered when a label is deleted.

Method Declaration
Copy
Method Parameters
eventLabelDeleted

Metadata for the event.

An event fired when a label is deleted
JavaScript
Errors

This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Did this help?

onLabelUpdated( )


Triggered when a label is updated.

Method Declaration
Copy
Method Parameters
eventLabelUpdated

Information about the task that was updated and metadata for the event.

An event fired when a label is updated
JavaScript
Errors

This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Did this help?

onTaskCreated( )


An event that triggers when a new task is created.

The onTaskCreated() event handler runs when a new task is created. The received TaskCreated object contains information about the task that was created.

Note: Backend events don't work when previewing your site.

Method Declaration
Copy
Method Parameters
eventTaskCreated

Information about the task that was created and metadata for the event.

An event fired when a task is created
JavaScript
Errors

This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Did this help?

onTaskDeleted( )


An event that triggers when a task is deleted.

The onTaskDeleted() event handler runs when a task is deleted. The received TaskDeleted object contains metadata.

Note: Backend events don't work when previewing your site.

Method Declaration
Copy
function wixCrmTasks_onTaskDeleted(event: TaskDeleted): void;
Method Parameters
eventTaskDeleted

Metadata for the event.

An event fired when a task is deleted
JavaScript
// Place this code in the events.js file // of your site's Backend section. // Add the file if it doesn't exist. export function wixCrmTasks_onTaskDeleted(event) { const eventId = event.metadata.entityId; console.log("Task deleted", event); } /* Full event object: * { * "metadata": { * "id": "9f6cc944-3204-46aa-a81f-4200159e8777", * "entityId": "c68244a0-e68f-49ca-b38c-43a0323b47ca", * "eventTime": "2024-01-21T06:53:43.861432102Z", * "triggeredByAnonymizeRequest": false * } * } */
Errors

This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Did this help?