updateContact() is not updating data on existing contact

I’m having trouble with
Briefly explain what’s not working or where you’re stuck

Working in
wix-crm.v2

What I’m trying to do
trying to update the data of a existing contact using a form that will be completed by a user.

I have a customized register form for new members. If the new member email exists in the crm contacts in my site, I need to convert this contact to an active member using wixUsersBackend.register, using the email of exsting contact.

but I need to update and complete the personal information of contact got from the customized registration form.

I am using the updateContact() in the backend but the contact data is not updating. below my backend code and the test result from the test terminal

export const updateContactInfo = webMethod(

Permissions.Anyone,

async (contactId, updatedContactInfo) => {

try {

console.log(“🧩 updateContactInfo() ejecutándose para:”, contactId);

const elevateGetContact = elevate(contactsV2.getContact);

const currentContact = await elevateGetContact(contactId);

if (!currentContact) {

throw new Error(`No se encontró el contacto con ID ${contactId}`);

  } **else**{

console.log("🔢 Contacto: ",contactId);

  }

const revisionNumber = currentContact.revision;

console.log(“🔢 Revisión actual:”, revisionNumber);

const elevatedUpdateContact = elevate(contactsV2.updateContact);

const options = {

allowDuplicates: false

  };

console.log("updateContactInfo: ",updatedContactInfo);

const updatedContact1 = await elevatedUpdateContact(

contactId,

updatedContactInfo,

revisionNumber,

options,

  );

console.log(“updatedContact1:”,updatedContact1);

console.log(“✅ Contacto actualizado correctamente:”, updatedContact1);

return updatedContact1;

} **catch** (error) {

console.error(“❌ Error en updateContactInfo:”, error);

throw error;

}

}

);


Contact Info before update:

{
“contact”: {
“revision”: 5,
“source”: {
“sourceType”: “WIX_SITE_MEMBERS”,
“wixAppId”: “f84df0d3-a3a9-4b45-a595-37a8c755aaf4”,
“appId”: “f84df0d3-a3a9-4b45-a595-37a8c755aaf4”
},
“lastActivity”: {
“activityDate”: “2025-11-07T20:30:12.000Z”,
“activityType”: “MEMBER_REGISTER”,
“date”: “2025-11-08T01:42:13.000Z”,
“description”: “Abrió una campaña de email”,
“icon”: {
“name”: “EmailOpen”,
“url”: “https://wixmp-8be454c954980f083caba37c.wixmp.com/activity-log/EmailOpen.png
}
},
“primaryInfo”: {
“email”: “joseluis.caresani@rationalcore.com”,
“phone”: “699 69 96 99”
},
“info”: {
“name”: {
“first”: “-Jose Luis”,
“last”: “-Caresani”
},
“emails”: {
“items”: [
{
“tag”: “UNTAGGED”,
“email”: “joseluis.caresani@rationalcore.com”,
“primary”: true,
“_id”: “dff6b085-46ae-491b-bea7-b08dde383bb1”
}
]
},
“phones”: {
“items”: [
{
“tag”: “UNTAGGED”,
“countryCode”: “ES”,
“phone”: “699 69 96 99”,
“e164Phone”: “+34699699699”,
“formattedPhone”: “+34 699 69 96 99”,
“primary”: true,
“_id”: “9b8be77e-0688-48b6-944b-6f8ed7e26068”
}
]
},
“extendedFields”: {
“items”: {
“contacts.displayByLastName”: “-Caresani -Jose Luis”,
“emailSubscriptions.deliverabilityStatus”: “VALID”,
“emailSubscriptions.subscriptionStatus”: “NOT_SET”,
“emailSubscriptions.effectiveEmail”: “joseluis.caresani@rationalcore.com”,
“contacts.displayByFirstName”: “-Jose Luis -Caresani”
}
}
},
“primaryEmail”: {
“email”: “joseluis.caresani@rationalcore.com”,
“subscriptionStatus”: “NOT_SET”,
“deliverabilityStatus”: “VALID”
},
“primaryPhone”: {
“countryCode”: “ES”,
“e164Phone”: “+34699699699”,
“formattedPhone”: “+34 699 69 96 99”,
“subscriptionStatus”: “NOT_SET”,
“deliverabilityStatus”: “NOT_SET”,
“phone”: “699 69 96 99”
},
“_id”: “a0f78149-733a-4a66-bc8e-9fc37da2d74f”,
“_createdDate”: “2025-11-07T20:30:11.891Z”,
“_updatedDate”: “2025-11-10T15:53:19.707Z”
}
}

contact info to update: updatedContactInfo from the test function window
{
“info”: {
“name”: {
“first”: “ÑÑÑÑÑÑJosé Luis”,
“last”: “ÑÑÑÑÑCaresani Di Tieri”
},
“phones”: [
{
“tag”: “mobile”,
“phone”: “+34699999900”
}
],
“birthdate”: “1953-10-23”,
“extendedFields”: {
“custom.acepto-tyc”: “Sí”,
“custom.numero-inscripcion-universae”: “UNIV2025-20xxxx”,
“custom.pais-de-nacieminto”: “Argentina”
}
}
}

Contact Info after updateContact()
{
“contact”: {
“revision”: 5,
“source”: {
“sourceType”: “WIX_SITE_MEMBERS”,
“wixAppId”: “f84df0d3-a3a9-4b45-a595-37a8c755aaf4”,
“appId”: “f84df0d3-a3a9-4b45-a595-37a8c755aaf4”
},
“lastActivity”: {
“activityDate”: “2025-11-07T20:30:12.000Z”,
“activityType”: “MEMBER_REGISTER”,
“date”: “2025-11-08T01:42:13.000Z”,
“description”: “Abrió una campaña de email”,
“icon”: {
“name”: “EmailOpen”,
“url”: “https://wixmp-8be454c954980f083caba37c.wixmp.com/activity-log/EmailOpen.png
}
},
“primaryInfo”: {
“email”: “joseluis.caresani@rationalcore.com”,
“phone”: “699 69 96 99”
},
“info”: {
“name”: {
“first”: “-Jose Luis”,
“last”: “-Caresani”
},
“emails”: {
“items”: [
{
“tag”: “UNTAGGED”,
“email”: “joseluis.caresani@rationalcore.com”,
“primary”: true,
“_id”: “dff6b085-46ae-491b-bea7-b08dde383bb1”
}
]
},
“phones”: {
“items”: [
{
“tag”: “UNTAGGED”,
“countryCode”: “ES”,
“phone”: “699 69 96 99”,
“e164Phone”: “+34699699699”,
“formattedPhone”: “+34 699 69 96 99”,
“primary”: true,
“_id”: “9b8be77e-0688-48b6-944b-6f8ed7e26068”
}
]
},
“extendedFields”: {
“items”: {
“contacts.displayByLastName”: “-Caresani -Jose Luis”,
“emailSubscriptions.deliverabilityStatus”: “VALID”,
“emailSubscriptions.subscriptionStatus”: “NOT_SET”,
“emailSubscriptions.effectiveEmail”: “joseluis.caresani@rationalcore.com”,
“contacts.displayByFirstName”: “-Jose Luis -Caresani”
}
}
},
“primaryEmail”: {
“email”: “joseluis.caresani@rationalcore.com”,
“subscriptionStatus”: “NOT_SET”,
“deliverabilityStatus”: “VALID”
},
“primaryPhone”: {
“countryCode”: “ES”,
“e164Phone”: “+34699699699”,
“formattedPhone”: “+34 699 69 96 99”,
“subscriptionStatus”: “NOT_SET”,
“deliverabilityStatus”: “NOT_SET”,
“phone”: “699 69 96 99”
},
“_id”: “a0f78149-733a-4a66-bc8e-9fc37da2d74f”,
“_createdDate”: “2025-11-07T20:30:11.891Z”,
“_updatedDate”: “2025-11-10T15:53:19.707Z”
}
}

The extended fields are configured from WIX CRM interface

[
{
** “namespace”: “custom”,**
** “key”: “custom.acepto-tyc”,**
** “displayName”: “Aceptó TyC”,**
** “dataType”: “TEXT”,**
** “fieldType”: “USER_DEFINED”,**
** “legacyId”: “371ee0fa-acdd-47c1-ae0f-da855b9ba091”,**
** “wixSearchColumn”: “info_extendedFields_custom_string_44”,**
** “_createdDate”: “2025-11-04T20:50:21.000Z”,**
** “_updatedDate”: “2025-11-04T20:50:21.000Z”**
** },**
** {**
** “namespace”: “custom”,**
** “key”: “custom.numero-inscripcion-universae”,**
** “displayName”: “Número Inscripción Universae”,**
** “dataType”: “TEXT”,**
** “fieldType”: “USER_DEFINED”,**
** “legacyId”: “26358213-a693-4c46-a172-b00c042313b6”,**
** “wixSearchColumn”: “info_extendedFields_custom_string_10”,**
** “_createdDate”: “2025-11-04T20:39:58.000Z”,**
** “_updatedDate”: “2025-11-04T20:39:58.000Z”**
** },**
** {**
** “namespace”: “custom”,**
** “key”: “custom.numero-de-legajo-vogue”,**
** “displayName”: “Numero de legajo Vogue”,**
** “dataType”: “TEXT”,**
** “fieldType”: “USER_DEFINED”,**
** “legacyId”: “325e356e-cc7c-4098-b062-cbba4c440886”,**
** “wixSearchColumn”: “info_extendedFields_custom_string_97”,**
** “_createdDate”: “2025-11-04T15:56:38.000Z”,**
** “_updatedDate”: “2025-11-04T15:56:38.000Z”**
** },**
** {**
** “namespace”: “custom”,**
** “key”: “custom.pais-de-nacieminto”,**
** “displayName”: “Lugar de Nacieminto”,**
** “dataType”: “TEXT”,**
** “fieldType”: “USER_DEFINED”,**
** “legacyId”: “5a3b57dd-6ad8-4a63-86a3-298243196a3b”,**
** “wixSearchColumn”: “info_extendedFields_custom_string_64”,**
** “_createdDate”: “2025-11-04T15:35:59.000Z”,**
** “_updatedDate”: “2025-11-04T20:43:09.000Z”**
** },**
** {**
** “namespace”: “custom”,**
** “key”: “custom.pais-donde-cursaste”,**
** “displayName”: “País Donde Cursaste”,**
** “dataType”: “TEXT”,**
** “fieldType”: “USER_DEFINED”,**
** “legacyId”: “998391d0-f8fc-45bc-8ae6-28dd8e9a1588”,**
** “wixSearchColumn”: “info_extendedFields_custom_string_29”,**
** “_createdDate”: “2025-01-15T12:58:09.000Z”,**
** “_updatedDate”: “2025-01-15T12:58:09.000Z”**
** },**
** {**
** “namespace”: “custom”,**
** “key”: “custom.institucion”,**
** “displayName”: “Institución Donde Cursaste”,**
** “dataType”: “TEXT”,**
** “fieldType”: “USER_DEFINED”,**
** “legacyId”: “92458a89-aa62-4dd6-b2db-728bc80feeb3”,**
** “wixSearchColumn”: “info_extendedFields_custom_string_36”,**
** “_createdDate”: “2025-01-15T12:38:46.000Z”,**
** “_updatedDate”: “2025-01-15T12:58:52.000Z”**
** },**
** {**
** “namespace”: “custom”,**
** “key”: “custom.x”,**
** “displayName”: “x”,**
** “dataType”: “TEXT”,**
** “fieldType”: “USER_DEFINED”,**
** “legacyId”: “8ae68c9d-e2b6-4d39-877c-feadd326cf52”,**
** “wixSearchColumn”: “info_extendedFields_custom_string_89”,**
** “_createdDate”: “2024-10-18T11:06:30.000Z”,**
** “_updatedDate”: “2024-10-18T11:06:30.000Z”**
** },**
** {**
** “namespace”: “custom”,**
** “key”: “custom.canal”,**
** “displayName”: “Canal”,**
** “dataType”: “TEXT”,**
** “fieldType”: “USER_DEFINED”,**
** “legacyId”: “aa909f1b-8942-444e-9a4f-a9c2881c1cd2”,**
** “wixSearchColumn”: “info_extendedFields_custom_string_43”,**
** “_createdDate”: “2024-10-10T15:10:29.000Z”,**
** “_updatedDate”: “2024-10-10T15:10:29.000Z”**
** },**
** {**
** “namespace”: “custom”,**
** “key”: “custom.pais-de-origen-dni-1”,**
** “displayName”: “País de DNI 1”,**
** “dataType”: “TEXT”,**
** “fieldType”: “USER_DEFINED”,**
** “legacyId”: “78c12397-66e9-47b8-ae92-81741fda5620”,**
** “wixSearchColumn”: “info_extendedFields_custom_string_70”,**
** “_createdDate”: “2024-09-04T11:50:20.000Z”,**
** “_updatedDate”: “2025-11-04T20:48:06.000Z”**
** },**
** {**
** “namespace”: “custom”,**
** “key”: “custom.dni-1”,**
** “displayName”: “DNI 1”,**
** “dataType”: “TEXT”,**
** “fieldType”: “USER_DEFINED”,**
** “legacyId”: “b4604661-bf93-4d25-826b-c89cb4a53cea”,**
** “wixSearchColumn”: “info_extendedFields_custom_string_100”,**
** “_createdDate”: “2024-09-04T11:49:28.000Z”,**
** “_updatedDate”: “2024-09-04T11:49:28.000Z”**
** },**
** {**
** “namespace”: “custom”,**
** “key”: “custom.pais-de-origen”,**
** “displayName”: “Pais de Pasaporte 1”,**
** “dataType”: “TEXT”,**
** “fieldType”: “USER_DEFINED”,**
** “legacyId”: “54998bc8-7b6f-422b-93da-c44c1ed196e6”,**
** “wixSearchColumn”: “info_extendedFields_custom_string_54”,**
** “_createdDate”: “2024-09-04T10:52:55.000Z”,**
** “_updatedDate”: “2025-11-04T20:47:38.000Z”**
** },**
** {**
** “namespace”: “custom”,**
** “key”: “custom.empadronado”,**
** “displayName”: “Empadronado”,**
** “dataType”: “TEXT”,**
** “fieldType”: “USER_DEFINED”,**
** “legacyId”: “be714c8f-7c12-4f0c-bd78-c01b547d220c”,**
** “wixSearchColumn”: “info_extendedFields_custom_string_98”,**
** “_createdDate”: “2024-09-04T10:20:50.000Z”,**
** “_updatedDate”: “2024-09-04T10:20:50.000Z”**
** },**
** {**
** “namespace”: “custom”,**
** “key”: “custom.nie”,**
** “displayName”: “DNI/NIE/TIE”,**
** “dataType”: “TEXT”,**
** “fieldType”: “USER_DEFINED”,**
** “legacyId”: “b547777b-bee2-407e-9326-6e7658d432e9”,**
** “wixSearchColumn”: “info_extendedFields_custom_string_72”,**
** “_createdDate”: “2024-09-04T10:19:48.000Z”,**
** “_updatedDate”: “2024-10-18T11:29:38.000Z”**
** },**
** {**
** “namespace”: “custom”,**
** “key”: “custom.seleccion-de-opciones”,**
** “displayName”: “Condición”,**
** “dataType”: “TEXT”,**
** “fieldType”: “USER_DEFINED”,**
** “legacyId”: “21380745-f04b-4f5b-9625-9c71ec4fadcd”,**
** “wixSearchColumn”: “info_extendedFields_custom_string_26”,**
** “_createdDate”: “2024-09-03T19:12:45.000Z”,**
** “_updatedDate”: “2024-09-04T10:48:00.000Z”**
** },**
** {**
** “namespace”: “custom”,**
** “key”: “custom.aceptacion-de-tyc”,**
** “displayName”: “Aceptación de TyC”,**
** “dataType”: “TEXT”,**
** “fieldType”: “USER_DEFINED”,**
** “legacyId”: “f0c6407a-5b92-4117-9771-8ea91b70ea18”,**
** “wixSearchColumn”: “info_extendedFields_custom_string_84”,**
** “_createdDate”: “2024-09-03T16:49:10.000Z”,**
** “_updatedDate”: “2024-09-03T16:49:10.000Z”**
** },**
** {**
** “namespace”: “custom”,**
** “key”: “custom.pasaporte”,**
** “displayName”: “Pasaporte 1”,**
** “dataType”: “TEXT”,**
** “fieldType”: “USER_DEFINED”,**
** “legacyId”: “511604a8-5990-43d6-b522-e0a279e3a218”,**
** “wixSearchColumn”: “info_extendedFields_custom_string_17”,**
** “_createdDate”: “2024-09-03T16:38:57.000Z”,**
** “_updatedDate”: “2024-09-04T10:54:44.000Z”**
** },**
** {**
** “namespace”: “custom”,**
** “key”: “custom.mensaje”,**
** “displayName”: “mensaje”,**
** “dataType”: “TEXT”,**
** “fieldType”: “USER_DEFINED”,**
** “legacyId”: “db95ee0b-d41b-490f-9263-0e7fcb47e86f”,**
** “wixSearchColumn”: “info_extendedFields_custom_string_99”,**
** “_createdDate”: “2024-09-03T16:16:48.000Z”,**
** “_updatedDate”: “2024-09-03T16:16:48.000Z”**
** },**
{
“namespace”: “custom”,
“key”: “custom.titulo-de-grado-apostillado”,
“displayName”: “Título de Grado Apostillado”,
“dataType”: “TEXT”,
“fieldType”: “USER_DEFINED”,
“legacyId”: “c48b07c6-caef-48e3-9763-9b99022a5619”,
“wixSearchColumn”: “info_extendedFields_custom_string_77”,
“_createdDate”: “2024-03-30T16:27:14.000Z”,
“_updatedDate”: “2024-03-30T16:27:14.000Z”
},
{
“namespace”: “custom”,
“key”: “custom.titulo-de-grado-legalizado”,
“displayName”: “Título de Grado Legalizado”,
“dataType”: “TEXT”,
“fieldType”: “USER_DEFINED”,
“legacyId”: “04461e79-66d6-47b2-be33-140820a9b066”,
“wixSearchColumn”: “info_extendedFields_custom_string_14”,
“_createdDate”: “2024-03-30T16:26:11.000Z”,
“_updatedDate”: “2024-03-30T16:26:11.000Z”
},
{
“namespace”: “custom”,
“key”: “custom.tipo-de-archivo”,
“displayName”: “Tipo de Archivo”,
“dataType”: “TEXT”,
“fieldType”: “USER_DEFINED”,
“legacyId”: “4655fd34-7b43-444d-ab8f-3faf7fa2f680”,
“wixSearchColumn”: “info_extendedFields_custom_string_37”,
“_createdDate”: “2023-09-13T19:27:20.000Z”,
“_updatedDate”: “2023-09-13T19:27:20.000Z”
},
{
“namespace”: “custom”,
“key”: “custom.link”,
“displayName”: “Link:”,
“dataType”: “URL”,
“fieldType”: “USER_DEFINED”,
“legacyId”: “77a2af95-fc98-4b5b-94f2-54dcea3738a3”,
“wixSearchColumn”: “info_extendedFields_custom_string_42”,
“_createdDate”: “2023-06-30T11:09:32.000Z”,
“_updatedDate”: “2024-10-18T13:30:10.000Z”
},
{
“namespace”: “custom”,
“key”: “custom.instagram”,
“displayName”: “Instagram:”,
“dataType”: “URL”,
“fieldType”: “USER_DEFINED”,
“legacyId”: “0f6bbb31-6c38-465f-96f9-f5072ccd7fb7”,
“wixSearchColumn”: “info_extendedFields_custom_string_90”,
“_createdDate”: “2023-05-21T16:51:17.000Z”,
“_updatedDate”: “2024-10-18T13:31:20.000Z”
},
{
“namespace”: “custom”,
“key”: “custom.facebook”,
“displayName”: “Facebook:”,
“dataType”: “URL”,
“fieldType”: “USER_DEFINED”,
“legacyId”: “d9eb42aa-b212-4cf5-a538-58f27fa97d05”,
“wixSearchColumn”: “info_extendedFields_custom_string_62”,
“_createdDate”: “2023-05-21T16:50:44.000Z”,
“_updatedDate”: “2024-10-18T13:31:10.000Z”
},
{
“namespace”: “custom”,
“key”: “custom.linkedin”,
“displayName”: “LinkedIN:”,
“dataType”: “URL”,
“fieldType”: “USER_DEFINED”,
“legacyId”: “ff3350ab-8a03-4aa6-bab5-22e53c561ae3”,
“wixSearchColumn”: “info_extendedFields_custom_string_20”,
“_createdDate”: “2023-05-21T16:50:25.000Z”,
“_updatedDate”: “2024-10-18T13:30:53.000Z”
},
{
“namespace”: “custom”,
“key”: “custom.telefono-de-contacto”,
“displayName”: “Teléfono de Contacto:”,
“dataType”: “NUMBER”,
“fieldType”: “USER_DEFINED”,
“legacyId”: “f32c1957-4302-4380-9f5d-a36960bb45a5”,
“wixSearchColumn”: “info_extendedFields_custom_double_28”,
“_createdDate”: “2023-05-21T16:49:46.000Z”,
“_updatedDate”: “2024-10-18T13:29:03.000Z”
},
{
“namespace”: “custom”,
“key”: “custom.sitio-web”,
“displayName”: “Sitio Web:”,
“dataType”: “URL”,
“fieldType”: “USER_DEFINED”,
“legacyId”: “b3a21c1c-7e55-423b-9c6e-d63d9352872a”,
“wixSearchColumn”: “info_extendedFields_custom_string_15”,
“_createdDate”: “2023-05-21T16:49:12.000Z”,
“_updatedDate”: “2024-10-18T13:30:23.000Z”
},
{
“namespace”: “custom”,
“key”: “custom.email-de-contacto”,
“displayName”: “email de contacto:”,
“dataType”: “TEXT”,
“fieldType”: “USER_DEFINED”,
“legacyId”: “c5c62935-9493-4e60-ac3f-8d1b5fad03f7”,
“wixSearchColumn”: “info_extendedFields_custom_string_68”,
“_createdDate”: “2023-05-21T16:48:39.000Z”,
“_updatedDate”: “2024-10-18T13:29:16.000Z”
},
{
“namespace”: “custom”,
“key”: “custom.profesion”,
“displayName”: “Profesión:”,
“dataType”: “TEXT”,
“fieldType”: “USER_DEFINED”,
“legacyId”: “92612010-e4c5-437a-9420-ca9244f7bccd”,
“wixSearchColumn”: “info_extendedFields_custom_string_5”,
“_createdDate”: “2023-05-21T16:47:28.000Z”,
“_updatedDate”: “2024-10-18T13:28:51.000Z”
},
{
“namespace”: “custom”,
“key”: “custom.apellidos”,
“displayName”: “Apellidos:”,
“dataType”: “TEXT”,
“fieldType”: “USER_DEFINED”,
“legacyId”: “36afbde0-c02b-4f7f-aa79-0850af28825e”,
“wixSearchColumn”: “info_extendedFields_custom_string_73”,
“_createdDate”: “2023-05-21T16:46:41.000Z”,
“_updatedDate”: “2024-10-18T13:28:39.000Z”
},
{
“namespace”: “custom”,
“key”: “custom.nombre”,
“displayName”: “Nombres:”,
“dataType”: “TEXT”,
“fieldType”: “USER_DEFINED”,
“legacyId”: “84582c6e-7a26-4967-87d8-bc408b16d55a”,
“wixSearchColumn”: “info_extendedFields_custom_string_91”,
“_createdDate”: “2023-05-21T16:45:10.000Z”,
“_updatedDate”: “2024-10-18T13:28:23.000Z”
},
{
“namespace”: “custom”,
“key”: “custom.perfil-linkedin”,
“displayName”: “Perfil LinkedIn:”,
“dataType”: “URL”,
“fieldType”: “USER_DEFINED”,
“legacyId”: “942b4750-9279-4ba7-9a20-f3cb0b46659a”,
“wixSearchColumn”: “info_extendedFields_custom_string_47”,
“_createdDate”: “2023-05-21T12:46:59.000Z”,
“_updatedDate”: “2024-10-18T13:30:38.000Z”
},
{
“namespace”: “custom”,
“key”: “custom.fecha-egreso-secundario”,
“displayName”: “Fecha Egreso Secundario”,
“dataType”: “DATE”,
“fieldType”: “USER_DEFINED”,
“legacyId”: “59929635-2d40-49a3-bca5-fbb5d6d20db9”,
“wixSearchColumn”: “info_extendedFields_custom_string_33”,
“_createdDate”: “2023-05-21T12:45:47.000Z”,
“_updatedDate”: “2023-05-21T12:45:47.000Z”
},
{
“namespace”: “custom”,
“key”: “custom.fecha-egreso-tecnicatura”,
“displayName”: “Fecha Egreso Tecnicatura”,
“dataType”: “DATE”,
“fieldType”: “USER_DEFINED”,
“legacyId”: “58d8fc63-5efb-4240-94e2-9f0440b30a44”,
“wixSearchColumn”: “info_extendedFields_custom_string_87”,
“_createdDate”: “2023-05-21T12:45:21.000Z”,
“_updatedDate”: “2023-05-21T12:45:21.000Z”
},
{
“namespace”: “custom”,
“key”: “custom.fecha-egreso-terciario”,
“displayName”: “Fecha Egreso Terciario”,
“dataType”: “DATE”,
“fieldType”: “USER_DEFINED”,
“legacyId”: “87e6c563-3780-4bd8-a322-43df0a2614c0”,
“wixSearchColumn”: “info_extendedFields_custom_string_96”,
“_createdDate”: “2023-05-21T12:44:47.000Z”,
“_updatedDate”: “2023-05-21T12:44:47.000Z”
},
{
“namespace”: “custom”,
“key”: “custom.fecha-egreso-pre-grado”,
“displayName”: “Fecha Egreso Pre Grado”,
“dataType”: “DATE”,
“fieldType”: “USER_DEFINED”,
“legacyId”: “8707c1f4-caac-4967-84ec-52d1959a9220”,
“wixSearchColumn”: “info_extendedFields_custom_string_25”,
“_createdDate”: “2023-05-21T12:44:10.000Z”,
“_updatedDate”: “2023-05-21T12:44:10.000Z”
},
{
“namespace”: “custom”,
“key”: “custom.fecha-egreso-grado”,
“displayName”: “Fecha Egreso Grado”,
“dataType”: “DATE”,
“fieldType”: “USER_DEFINED”,
“legacyId”: “d447249d-29fc-4310-9f5c-65b7ee306649”,
“wixSearchColumn”: “info_extendedFields_custom_string_95”,
“_createdDate”: “2023-05-21T12:43:42.000Z”,
“_updatedDate”: “2023-05-21T12:43:42.000Z”
},
{
“namespace”: “custom”,
“key”: “custom.secundario-bachiller”,
“displayName”: “Secundario/Bachiller”,
“dataType”: “TEXT”,
“fieldType”: “USER_DEFINED”,
“legacyId”: “415a1093-a438-4550-9070-37c4b078176a”,
“wixSearchColumn”: “info_extendedFields_custom_string_24”,
“_createdDate”: “2023-05-21T12:43:09.000Z”,
“_updatedDate”: “2023-05-21T12:43:09.000Z”
},
{
“namespace”: “custom”,
“key”: “custom.tecnicatura”,
“displayName”: “Tecnicatura”,
“dataType”: “TEXT”,
“fieldType”: “USER_DEFINED”,
“legacyId”: “947b09ac-6312-4795-af54-18a9f424cbb2”,
“wixSearchColumn”: “info_extendedFields_custom_string_19”,
“_createdDate”: “2023-05-21T12:42:47.000Z”,
“_updatedDate”: “2023-05-21T12:42:47.000Z”
},
{
“namespace”: “custom”,
“key”: “custom.titulo-de-pre-grado”,
“displayName”: “Título de Pre Grado”,
“dataType”: “TEXT”,
“fieldType”: “USER_DEFINED”,
“legacyId”: “c1367492-9642-4337-aadf-c0a333b6a87b”,
“wixSearchColumn”: “info_extendedFields_custom_string_31”,
“_createdDate”: “2023-05-21T12:42:22.000Z”,
“_updatedDate”: “2023-05-21T12:42:22.000Z”
},
{
“namespace”: “custom”,
“key”: “custom.titulo-terciario”,
“displayName”: “Título Terciario”,
“dataType”: “TEXT”,
“fieldType”: “USER_DEFINED”,
“legacyId”: “167d94ee-956e-40ff-8fc5-64d250707e0c”,
“wixSearchColumn”: “info_extendedFields_custom_string_30”,
“_createdDate”: “2023-05-21T12:38:31.000Z”,
“_updatedDate”: “2023-05-21T12:38:31.000Z”
},
{
“namespace”: “custom”,
“key”: “custom.titulo-de-grado”,
“displayName”: “Título de Grado”,
“dataType”: “TEXT”,
“fieldType”: “USER_DEFINED”,
“legacyId”: “fc55c40a-f02a-4e57-924e-c4e057730e55”,
“wixSearchColumn”: “info_extendedFields_custom_string_65”,
“_createdDate”: “2023-05-21T12:37:33.000Z”,
“_updatedDate”: “2023-05-21T12:37:33.000Z”
},
{
“namespace”: “custom”,
“key”: “custom.pais-de-residencia”,
“displayName”: “País de Residencia”,
“dataType”: “TEXT”,
“fieldType”: “USER_DEFINED”,
“legacyId”: “1fd9c5e2-46d6-4ceb-a7b5-4577cabffcf8”,
“wixSearchColumn”: “info_extendedFields_custom_string_27”,
“_createdDate”: “2023-05-21T12:36:19.000Z”,
“_updatedDate”: “2023-05-21T12:36:19.000Z”
},
{
“namespace”: “custom”,
“key”: “custom.fecha”,
“displayName”: “Fecha de Egreso”,
“dataType”: “DATE”,
“fieldType”: “USER_DEFINED”,
“legacyId”: “e275ce63-2f63-49ff-972b-91ce06cc05eb”,
“wixSearchColumn”: “info_extendedFields_custom_string_81”,
“_createdDate”: “2023-05-21T12:34:46.000Z”,
“_updatedDate”: “2023-05-21T12:41:14.000Z”
},
{
“namespace”: “custom”,
“key”: “custom.pais-en-donde-se-obtuvo”,
“displayName”: “Título de Origen”,
“dataType”: “TEXT”,
“fieldType”: “USER_DEFINED”,
“legacyId”: “d61f5735-9d69-4b6c-a646-56e7d7885a50”,
“wixSearchColumn”: “info_extendedFields_custom_string_1”,
“_createdDate”: “2023-05-21T12:34:27.000Z”,
“_updatedDate”: “2023-05-21T12:39:22.000Z”
},
{
“namespace”: “custom”,
“key”: “custom.formacion-academica”,
“displayName”: “Formación Académica”,
“dataType”: “TEXT”,
“fieldType”: “USER_DEFINED”,
“legacyId”: “6a753971-c56f-4a83-9f48-e53c39f6f234”,
“wixSearchColumn”: “info_extendedFields_custom_string_63”,
“_createdDate”: “2023-05-21T12:33:16.000Z”,
“_updatedDate”: “2023-05-21T12:33:16.000Z”
},
{
“namespace”: “contacts”,
“key”: “contacts.displayByFirstName”,
“displayName”: “Display Name (start with first)”,
“dataType”: “TEXT”,
“fieldType”: “SYSTEM”,
“description”: “Display name starting with first name (read only)”
},
{
“namespace”: “contacts”,
“key”: “contacts.displayByLastName”,
“displayName”: “Display Name (start with last)”,
“dataType”: “TEXT”,
“fieldType”: “SYSTEM”,
“description”: “Display name starting with last name (read only)”
},
{
“namespace”: “invoices”,
“key”: “invoices.vatId”,
“displayName”: “VAT ID”,
“dataType”: “TEXT”,
“fieldType”: “SYSTEM”,
“description”: “Vat ID for Wix Invoices”
},
{
“namespace”: “members”,
“key”: “members.membershipStatus”,
“displayName”: “Membership Status”,
“dataType”: “TEXT”,
“fieldType”: “SYSTEM”,
“description”: “APPROVED/DENIED/PENDING/INACTIVE/OFFLINE_ONLY (read only)”
},
{
“namespace”: “members”,
“key”: “members.mobile”,
“displayName”: “Mobile flag”,
“dataType”: “TEXT”,
“fieldType”: “SYSTEM”,
“description”: “true/false”
}
]
strong text

1 Like

Can you share the code you’re using? It’s difficult to tell what’s happening without it :slight_smile:

1 Like

hi, the code in the topic is updated

Hi, @tustramites-consulta !!

Your post reminded me of a similar issue I dealt with recently, so I wanted to share that topic with you. Hope you find it helpful. :innocent: :raising_hands:

1 Like

Hi, wix support told me which is the correct formatted structure for updatecontact()..

before updatecontact() you should merge the new info with the existing information stored in the contact, in order to not overwrite or lost previous information.

  updatedInfo = {
     name: {
         firstName: first_name,
         lastName: last_name
       },
      phones: {
               items: [{
                 tag: "MAIN",
                 primary: true,
                 phone: phone
                 }]
               },
              //addresses: direccion_de_varias_lineas_3ac7 ? [direccion_de_varias_lineas_3ac7] : [],
     addresses:{
              items:[{
               tag: "HOME",
               address:{
                            "addressLine1": direccion_de_varias_lineas_3ac7 ? direccion_de_varias_lineas_3ac7.addressLine : null,
                            "addressLine2": direccion_de_varias_lineas_3ac7 ? direccion_de_varias_lineas_3ac7.addressLine2 : null,
                            "city": direccion_de_varias_lineas_3ac7 ? direccion_de_varias_lineas_3ac7.city : null,
                            "country": direccion_de_varias_lineas_3ac7 ? direccion_de_varias_lineas_3ac7.country : null,
                            "postalCode": direccion_de_varias_lineas_3ac7 ? direccion_de_varias_lineas_3ac7.postalCode : null

                }

            }]

          },
      birthdate: fecha_de_nacimiento_ed4e || null,
      labelKeys: {
             "items": [
 
                "custom.xxxxxx" /// debe agregarse a las existentes

            ]
        },
    
      extendedFields: {
         items:{
               "custom.acepto-tyc": form_field_04e2 ? "Sí" : "No",
                "custom.acepto-tyc-bachiller": form_tyc_bachiller ? "Sí" : "No",
                "custom.numero-inscripcion-universae": nro_de_inscripcion_universae,
                "custom.nro-pedido-nexus-academico": nro_de_pedido_nexus_academico,
                "custom.pais-de-nacieminto": lugar,
                "custom.canal": "UNI",
                "custom.pais-de-origen-dni-1": pais_emisor,
                "custom.dni-1": dni_otro === "DNI" ? nro_documento : null,
                "custom.nie": dni_otro === "NIE/TIE" ? nro_documento : null,
                "custom.pasaporte": dni_otro === "PASAPORTE" ? nro_documento : null,
                "custom.pais-de-origen": dni_otro === "PASAPORTE" ? pais_emisor : null
       }
      }
    };