Results 1 to 8 of 8

Thread: Select Users from contacts list

  1. #1
    stheologo is offline Sugar Community Member
    Join Date
    Sep 2007
    Posts
    23

    Default Select Users from contacts list

    HI,

    I have a list of company employees in the contact module. Is there a way I can select them when adding users to roles?

    Thanks
    Spiro

  2. #2
    andopes's Avatar
    andopes is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Jul 2006
    Location
    São Paulo - Brazil
    Posts
    8,335

    Default Re: Select Users from contacts list

    Hi, Spiro

    Do you want to add contacts to a role?
    If I understood wrong, please tell me.

    --
    André Lopes
    Lâmpada Global Services
    Rua Bela Cintra, 299 conjunto. 51
    São Paulo, SP 01415-000
    tel1. 55 11 3237-3110
    cel. 55 11 7636-5859
    e-mail: info@lampadacrm.com.br

  3. #3
    stheologo is offline Sugar Community Member
    Join Date
    Sep 2007
    Posts
    23

    Default Re: Select Users from contacts list

    HI Andre,

    That is what I am trying to do, instead of creating new users, just use the contacts.

    Spiro

  4. #4
    andopes's Avatar
    andopes is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Jul 2006
    Location
    São Paulo - Brazil
    Posts
    8,335

    Default Re: Select Users from contacts list

    Hi, Spiro
    I can't imagine an application for adding contacts to a role.
    Can you explain your needs?

    --
    André Lopes
    Lâmpada Global Services
    Rua Bela Cintra, 299 conjunto. 51
    São Paulo, SP 01415-000
    tel1. 55 11 3237-3110
    cel. 55 11 7636-5859
    e-mail: info@lampadacrm.com.br

  5. #5
    stheologo is offline Sugar Community Member
    Join Date
    Sep 2007
    Posts
    23

    Default Re: Select Users from contacts list

    HI Andre,

    We are using contacts to store company employees, some of these employees are on the help desk, others in sales. For them to use Sugar, they need be users, who are connected to roles. So instead of creating users, as they already exist in Sugar as a contact, I want to connect the users to a role..
    Hope it makes sense...

    Maybe there is another way?

    Thanks,
    Spiro

  6. #6
    andopes's Avatar
    andopes is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Jul 2006
    Location
    São Paulo - Brazil
    Posts
    8,335

    Default Re: Select Users from contacts list

    Hi, Spiro

    The ACLRoles module has a specific behavior and it widely affect all SugarCRM functionalities, so it is not viable to add Contacts to a Role.
    But you could do the following steps:

    1. Create a custom field into Users module which relate to Contact
    2. Create a custom field checkbox into Contact module, which tells a new user will be created from this new contact.
    3. Create a logic_hook before_save into Contacts module, which is called even a new contact is saved with the checkbox checked.

    This way you can sync a Employee to User in way you can add into a role the user related to a given contact.
    You could also manager inside which role a contact is.

    Is it viable or useful for you?

    Cheers

    --
    André Lopes
    Lâmpada Global Services
    SugarCRM Silver Partner
    USA: +1 908 998-2278
    BR: +55 11 3237-3110
    www.lampadaglobal.com
    email: info@lampadaglobal.com

    Lampada Global Services delivers enterprise software and offshore programming services to customers around the world.

  7. #7
    stheologo is offline Sugar Community Member
    Join Date
    Sep 2007
    Posts
    23

    Default Re: Select Users from contacts list

    HI Andre,

    I will give it a bash. Not a php/scripting guru so the logic_hook stuff may take a while to figure out.

    Thanks
    Spiro

  8. #8
    anvaruz is offline Senior Member
    Join Date
    Jul 2008
    Location
    United Kingdom
    Posts
    26

    Default Re: Select Users from contacts list

    this could be useful for our application too

    would be great to have an option to create an employee from a contact

    I'm not very good at PHP so if someone managed to do this would be be great to get the detailed instruction )

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Sugar 5.0.0 / Sugar Forums 5.0.0 Extension Query Errors
    By benk in forum Installation and Upgrade Help
    Replies: 4
    Last Post: 2008-05-13, 03:44 PM
  2. Email target list of all contacts of selected "Type"
    By CharlieArmor in forum Marketing/Campaign Management
    Replies: 2
    Last Post: 2006-12-16, 02:02 AM
  3. Replies: 0
    Last Post: 2006-06-15, 01:34 PM
  4. Replies: 0
    Last Post: 2006-06-13, 08:44 PM
  5. Replies: 1
    Last Post: 2005-12-19, 03:55 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
  •