Updating members database and contact info

Hello all,

I’m trying to allow members to update their information on my site using a custom form but I’d also like to be able to update their contact information at the same time.

I know when a user is initially registered it will create the contact information but I’m unsure of how to find the contact ID necessary to update contact information by using the backend function of wixCrm.updateContact.

I tried using the ID from the members database but it doesn’t seem to work as it returns undefined when using that.

Any help would be appreciated.