Hello,
I’m having a hell of a time debugging this code. Any help is GREATLY appreciated!
I have code that determines the user’s emails, phones, and addresses. The problem is that the URL path sometimes contains the ID and sometimes it contains the slug. If I get an ID, I’m fine (I can just call getContactById(ID) ). However, if I get a slug, I’m in trouble. I have to query the PrivateMembersData collection to get the ID and then query Contacts to get the addresses (because addresses doesn’t exist in PrivateMembersData).
My error comes when I try to get the data when I have a slug in the URL. I can’t for the life of me figure out where to even begin. It happens in preview and live.
Thank you,
-A tired and stressed out developer