Results 1 to 4 of 4

Thread: Connecting Contacts and Accounts for SQL Queries

  1. #1
    anicolais is offline Senior Member
    Join Date
    Nov 2009
    Posts
    99

    Default Connecting Contacts and Accounts for SQL Queries

    How does sugar connect the accounts to the contacts? I am looking through the database structure and I see the AccountID in Accounts and ContactID in contacts but I cant find where the ContactID is in the Account Module??????

  2. #2
    sugarcane is offline Sugar Community Member
    Join Date
    Apr 2005
    Location
    Chicago, IL
    Posts
    1,207

    Default Re: Connecting Contacts and Accounts for SQL Queries

    Hello,

    in the database, there is a table called accounts_contacts. This links accounts and contacts together by their ids.
    Intelestream has a great deal of experience hosting and customizing the SugarCRM application. Our company is made up by former employees of SugarCRM, and together we have over 50 years of experience working with the application. To learn more about us, please visit our website at www.intelestream.net or contact us directly at 800-391-4055 or by email at info@intelestream.net

  3. #3
    santhoshemmadi is offline Senior Member
    Join Date
    Sep 2009
    Posts
    60

    Default Re: Connecting Contacts and Accounts for SQL Queries

    Hi,

    Can you please guide me how to use the custom filed of One module in other.
    That is for example I want to use the the City filed of accounts in contacts ie, When I go to contacts edit view i should be able to see that particular contact's city same as the account's city name. Any ideas...

    With Regards,
    Santhosh

  4. #4
    sugarcane is offline Sugar Community Member
    Join Date
    Apr 2005
    Location
    Chicago, IL
    Posts
    1,207

    Default Re: Connecting Contacts and Accounts for SQL Queries

    Hello Santhosh,

    When I go to contacts edit view i should be able to see that particular contact's city same as the account's city name
    This functionality is already built into the system. If you create a contact from the subpanel in the Account detail view or create a new contact and select and account, if the account has address of phone numbers populated, they will automatically populate the same fields into the related Contact record
    Intelestream has a great deal of experience hosting and customizing the SugarCRM application. Our company is made up by former employees of SugarCRM, and together we have over 50 years of experience working with the application. To learn more about us, please visit our website at www.intelestream.net or contact us directly at 800-391-4055 or by email at info@intelestream.net

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 1
    Last Post: 2009-06-03, 04:00 PM
  2. Why is Contacts:Accounts many-to-many?
    By SugarDev.net in forum Developer Help
    Replies: 3
    Last Post: 2009-02-09, 12:28 PM
  3. Replies: 1
    Last Post: 2009-02-05, 07:20 PM
  4. Help with connecting Cases to Contacts
    By DigiCRM in forum Developer Help
    Replies: 10
    Last Post: 2009-01-10, 10:30 AM
  5. Connecting Contacts to Accounts
    By davecampbell in forum Help
    Replies: 4
    Last Post: 2004-11-30, 06:12 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
  •