Claudius
5 years agoBoss
How to access a custom user profile metadata field?
We had asked Khoros support to create as a custom profile metadata a boolean profile.receive_community_news. I am struggling to access this field via any API though. With the metadata field for messages I know that I could access them via Message.metadata calls in API v1. But I couldn't find an API v2 equivalent, nor an equivalent that works on profile metadata fields
I tried this without success ("Field 'profile.receive_community_news' does not exist for object 'settings'."):
SELECT profile.receive_community_news FROM settings WHERE user.id = '65'
How to access a custom user profile metadata field via community API? Ideally, I would like to get this setting for all members, i.e. a working API v2 call to the users collection would be my preference.