updateContact( )


Deprecated. This function will continue to work, but a newer version is available at wix-crm-backend.contacts.updateContact().

Updates an existing contact.

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-backend.contacts.updatecontact().

To migrate to the new function:

  1. Add the new import statement:

    Copy
    1
  2. If you plan to migrate all contact functions that use wixCrmBackend, remove the original import wixCrmBackend statement.

  3. Look for any code that uses wixCrmBackend.updateContact(), and replace it with contacts.updateContact(). Update your code to work with the new updateContact() call and response properties.

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

The updateContact() function returns a Promise that resolves when the contact with the specified ID has been updated.

Only the properties passed in the ContactInfo object will be updated. All other properties will remain the same.

Method Declaration
Copy
Method Parameters
contactIdstringRequired

The ID of the contact to update.


contactInfoContactInfoRequired

The information to update.

Was this helpful?
Yes
No