Ok. I think i have the solution.
It’s right here:
I’m trying to use the following backend code to update the current user’s custom contact fields. This runs perfectly when I am logged in with my owner account, but all other accounts fail to update the custom fields. I thought setting “SuppressAuth” to “true” would allow this, but that doesn’t seem to help. As always, any advice appreciated.
import { contacts } from ‘wix-crm-backend’;
export async function overwriteContactInfo(contactId, updatedContactInfo) {
console.log(contactId);
const Ge…
i need to put:
const getContactOptions = {
suppressAuth: true
};
before
const myContact = await contacts.getContact(contactId);
and substitute this line for:
const myContact = await contacts.getContact(contactId, getContactOptions);