Results 1 to 3 of 3

Thread: How would I add a field to relate a lead to an existing account?

  1. #1
    jspencer is offline Sugar Community Member
    Join Date
    Jun 2007
    Location
    Orlando, Fl
    Posts
    85

    Default How would I add a field to relate a lead to an existing account?

    Our business deals with 'advertising agencies' and 'agency clients'. The way I have the CRM set up right now they are both treated the same and recorded as normal 'Accounts' (eventually I may split them out and move Agencies to their own module, but for now it sounded easier for reporting/etc to leave them together). Each 'agency' has many 'clients' in their portfolio, but at present not all of those clients have been contacted yet. In my mind those clients should be entered as 'Leads' using the leads module.

    The issue I find is that in order for these 'clients' to be entered as Leads, we will need to add a new "Related To" field to the Leads module that gives us a "Select" box (like the one for Contacts) to select the "Parent" account (advertising agency).

    How would I add a field to relate a lead to an existing account?

    I would also like the new button to be able to be changed to point to a different module in the future (in case I make agencies their own module down the road).

    Thanks,
    -Jeff

    SugarCRM CE 5.0a - Ubuntu 6.04 - Apache 2 - PHP 5 - Mysql 5

  2. #2
    SamuelAugy is offline Sugar Community Member
    Join Date
    Sep 2007
    Location
    Paris (France)
    Posts
    238

    Default Re: How would I add a field to relate a lead to an existing account?

    It's the same thing than http://www.sugarcrm.com/forums/showthread.php?t=28256
    You can begin by coding in vardef.php of your module to declare the relation. After that you will need to customize some tings to show the name of your object and not the id ...

    Good luck again

  3. #3
    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: How would I add a field to relate a lead to an existing account?

    Hi, Jay.

    The Leads modules has already fields which points to related Contact (contact_id) and Account (account_id).
    I believe you could customize the EditView of Leads to implements the select button for searching the correct Contact and Accounts.

    Cheers.

    --
    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

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 21
    Last Post: 2007-09-24, 02:25 PM
  2. Replies: 0
    Last Post: 2007-04-25, 06:16 AM
  3. Replies: 0
    Last Post: 2007-02-05, 09:49 PM
  4. From lead to order
    By george_bbch in forum Feature Requests
    Replies: 0
    Last Post: 2006-09-26, 02:02 PM
  5. Lead Dashlet - add account
    By 3v3ntiq in forum Feature Requests
    Replies: 2
    Last Post: 2006-09-25, 11:00 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
  •