Results 1 to 4 of 4

Thread: Contact roles

  1. #1
    judgej is offline Sugar Community Member
    Join Date
    Feb 2007
    Posts
    58

    Default Contact roles

    I cannot see a way to specify a role in the relationship between a contact and an account. Is there a way to do that that perhaps I am not seeing?

    For example, I would like to say which contact handles payments, which handles deliveries, which deals with specifications etc.

    Those contacts may have other roles against other accounts, so this is a property of the relationship, not a property of the contact individual.

    Some contacts may also have multiple roles against a single account.

    -- Jason

  2. #2
    judgej is offline Sugar Community Member
    Join Date
    Feb 2007
    Posts
    58

    Default Re: Contact roles

    Here is a more concrete example:

    I have a university and a student, both as accounts. The student is linked to the university.

    At the university there is a professor as a contact. His role will be "head of department X".

    The student purchases a service, which is delivered by me but with some help from the university. In order to help, the same professor is then assigned as a contact to the student account. The role in that case will be "course contact".

    Part of the service the student gets will involve a trip abroad. To do that we need some emergency contacts, and these make sense to be set up as further contacts to the student account, this time with roles "emergency contact".

    That is the kind of structure I am trying to model.

  3. #3
    kinunt is offline Junior Member
    Join Date
    Jul 2009
    Posts
    4

    Default Re: Contact roles

    I think you are looking something similar to this:

    http://www.sugarcrm.com/forums/showthread.php?t=67742

  4. #4
    judgej is offline Sugar Community Member
    Join Date
    Feb 2007
    Posts
    58

    Default Re: Contact roles

    Quote Originally Posted by kinunt View Post
    I think you are looking something similar to this:

    http://www.sugarcrm.com/forums/showthread.php?t=67742
    Thanks - that sounds spot on. That looks like a good solution - rather than using the built-in contact relationships, create one of my own to use instead, with a many-to-many table called "contact roles" to sit in the middle. I can then add whatever custom fields I like to the "contact roles" table.

    (I suspect the terminology is "module" here rather than "table" - still getting used to the way Sugar does stuff.)

    It's a shame Sugar does not allow its own built-in contact/account relationship table to be extended like this, because I can see it being very useful in many circumstances. The table is there, but it simply is not exposed as a module. Maybe it can be extended programmatically?

    -- Jason

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. One contact - Multiple account with roles
    By Darkhawk in forum Developer Help
    Replies: 3
    Last Post: 2010-12-21, 07:20 PM
  2. Replies: 1
    Last Post: 2008-03-28, 10:37 PM
  3. User Roles not in the roles table?
    By doctorlard in forum Developer Help
    Replies: 3
    Last Post: 2006-04-18, 04:41 AM
  4. Roles-Contacts and Roles-Accounts
    By jmontani in forum Developer Help
    Replies: 0
    Last Post: 2005-07-20, 08:35 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •