Searching for custom field value from wix-users?

Hello

So I added a custom field in the contacts table via the Contact List (lets call the custom field “user_code”)

Is there a way to search for this user code via corvid?
Say I want users to look up each other via their user code instead of email

Thanks in advance!

Also it would be quite convenient to now the collection where the custom fields are stored

Anyone knows where it is stored?

Thank you

Hi Alvin,

Check out getContactById()
https://www.wix.com/corvid/reference/wix-crm-backend.html#getContactById

Hi Ido,

I need to search based on the user code instead of the user ID (Think referral code)
Basically i just need to do a WHERE query to the contact database, any way to achieve that?

Cheers