In the database of members/users I have a extra field that comes from a referenced field to another field. Basically I associate Users with the Database of Companies. At the same time every company can be associated with a list of users (multi-referenced) that work in that company.
The thing is that now a need to get the associated company ID of the user with code. But I haven’t found a function that gets me this info. Is not in the “extended fields” or “custom fields” info.
Did you use a single reference field “company” in the Users collection ? Or a muliti-reference field (where each user can be linked to many companies and each company can be linked to many users)?