Retrieve Contacts Custom Field Value for Signed-On Member

Question:
Hello - I am trying to sort out how to retrieve the currently signed-in member’s Mentor ID (name of custom field in Contacts) so I can use in filtering a repeater and other uses. I do not know much about Wix coding so I am using Chat GPT to help.

Product:
Wix Editor

What are you trying to achieve:
Retrieve value of Mentor ID custom field in contacts.

What have you already tried:
I have created a back-end function to retrieve but it does not work. I have a text control on a page that shows the value. It shows Mentor ID not found. I have a feeling part of the issue is I do not know the key for the field - not sure how to locate.

Additional information:
No additional info.

Hi, user1812 !!

The query might be failing due to access restrictions on the “Members/PrivateMembersData” collection. :thinking: