Hi guys,
I’m trying to perform a hook to retrieve information about my item’s reference.
export function BaseFonctions_beforeUpdate(item, context) {
wixData.query("BaseContacts").eq('_id', item._id_contact._id).limit(1).find()
.then((results) => {
item.title = results.items[0].ent_contactPrenom + ' (' + item.fonction.replace(/,/gi, ".") + ')';
})
}
It works well using update() function, but when I use bulkUpdate, all my reference are updated with a unique reference field, which by the way isn’t part of my bulkUpdate request.
Any idea ?
Thanks in advance for your help