AnsweredAssumed Answered

How do you create a relationship using a custom module?

Question asked by Julio Gomes on May 2, 2014
Hi Dear.I created one field in the users module and in opportunities module of the sugar in which i place the value "Brazil" or "Usa" and now i need create one relationship between they.
When the user that is from usa just see the opportunities with same value and vice-versa, i tried create one relationship manually but i saw that the sugar created a second table in the database call user_cstm and the field in this table, now i don ́t know how i can create a relationship between this tree tables, "Opportunities", "User" and "users_csmt", someone can help me?