Hey Velo users,
We released new functions for working with your site's contacts! Now with Velo code, you can:
Create, update, get, query, and delete contacts
Label/unlabel contacts
Manage labels
Manage custom fields
The new functions live in the Contacts subcategory in both wix-crm and wix-crm-backend. And in the Events subcategory of wix-crm-backend, you'll find events that are triggered when your contacts are created, updated, or deleted.
These APIs replace most of the existing Contacts functions, which have been updated with migration instructions. We’ll continue to support the existing functions, but we recommend migrating to keep your code compatible with future changes.
You can find migration instructions here:
createContact() (wix-crm)
createContact() (wix-crm-backend)
deleteContact() (wix-crm-backend)
getContactById() (wix-crm-backend)
updateContact() (wix-crm-backend)
Drop a comment below to ask a question, leave feedback, or share what you're building with the new functions. We're excited to hear from you!
Can I use updateContact() in the code block of the page after a Event Handler?