Results 1 to 8 of 8

Thread: Adding "Company" as a custom field in Accounts/Contacts

  1. #1
    sugarhoney is offline Sugar Community Member
    Join Date
    Mar 2008
    Posts
    20

    Default Adding "Company" as a custom field in Accounts/Contacts

    In my old CRM, there's a "company" column in a table called "contact." But in sugarcrm Contacts, there isn't one - and no "companies" table in sugarcrm as well. At this point, when I import my contacts, it goes to a generic account "myaccount." Thus, in the "accounts_contacts" table, all the contact_id have the same account_id (myaccount).

    Additionally, in my old CRM, the company columns have records like "Alpha Store" which is listed 4 times in my old CRM based on four contacts working for the same company. So, I'd like it to be copied once to sugarcrm custom fields with just one unique id (I'm transferring the data from my old CRM on an SQL Server to my sugarcrm on mysql. I'm using PHP to create a script to do this, so I have complete control of what tables to update (contacts and accounts_contacts). I mainly need help on having a custom "Company" column when viewing the list of contacts and normalizing the Companies so mulitple contacts can be associated with the unique company they belong to.

    For example, in viewing the contact list, you can see Account Name, Title, and Department, but not one for "Company." So, I want to know if a Custom Field field can provide that and have company be searchable as well? Or, should I add a new column called "company" in the accounts or contacts table? However, I don't how if this will screw up the structure of sugarcrm.
    Last edited by sugarhoney; 2008-03-17 at 04:55 PM.

  2. #2
    sugarhoney is offline Sugar Community Member
    Join Date
    Mar 2008
    Posts
    20

    Default Re: Adding "Company" as a custom field in Accounts/Contacts

    Basically, what I would like to do is, add a custom field in the "Accounts" table called "company." Each imported contacts will map to a company. Then when viewing the Contacts list, it will display "Name", "Title", "Account Name" and then "Company"

    Will this work? Must company has a unique id of some sort?

  3. #3
    Join Date
    Feb 2007
    Location
    San Jose, CA
    Posts
    1,169

    Default Re: Adding "Company" as a custom field in Accounts/Contacts

    Hi there,

    From my understanding of your posts, Sugar's "accounts" table is effectively the same as the "company" table in your old CRM system. If you want to call it Company, you can just change the labels on the screens and you'd have what you are looking for.
    Susie Williams

  4. #4
    sugarhoney is offline Sugar Community Member
    Join Date
    Mar 2008
    Posts
    20

    Default Re: Adding "Company" as a custom field in Accounts/Contacts

    Yes, and if I want to add a "company" column as a custom field in the accounts table, that would work right? But when viewing the Contacts, how do I make it display a "Company" column along w/ "Name", "Title", and "Account Name."? Is there something else I need to modify?

  5. #5
    Join Date
    Feb 2007
    Location
    San Jose, CA
    Posts
    1,169

    Default Re: Adding "Company" as a custom field in Accounts/Contacts

    Why wouldn't Company = "Account Name" ? Isn't that the same thing you're trying to display?
    Susie Williams

  6. #6
    sugarhoney is offline Sugar Community Member
    Join Date
    Mar 2008
    Posts
    20

    Default Re: Adding "Company" as a custom field in Accounts/Contacts

    I just like to keep them separate for some reason. Is it better to keep it as one? Ok, so when viewing the Contacts list, how do I change "Account Name" to "Company"? In that case, would it make sense to add a custom field called "Company" in accounts in the first place?

  7. #7
    Join Date
    Feb 2007
    Location
    San Jose, CA
    Posts
    1,169

    Default Re: Adding "Company" as a custom field in Accounts/Contacts

    If you have two fields that essentially hold the same information, it makes sense to just use the one (built in) field.

    As for label changes, you can do this using the Sugar Studio. There is a brief tutorial posted on the developers website that shows you how Studio works.
    Susie Williams

  8. #8
    eggsurplus's Avatar
    eggsurplus is offline Sugar Community Member
    Join Date
    Dec 2005
    Location
    Minnesota
    Posts
    2,343

    Default Re: Adding "Company" as a custom field in Accounts/Contacts

    Trust Susie on this one. She's helping you from making a big mistake

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. upgraded to 4.5.1e, received "Metadata for table tracker does not exist"
    By sfgeorge in forum Installation and Upgrade Help
    Replies: 0
    Last Post: 2007-09-03, 02:24 PM
  2. Replies: 1
    Last Post: 2006-09-11, 03:38 PM
  3. Asterisk Patch 1.1.0 Crash on logon
    By skyracer in forum Help
    Replies: 6
    Last Post: 2006-07-08, 06:30 AM
  4. Replies: 7
    Last Post: 2006-06-06, 07:56 PM
  5. Replies: 3
    Last Post: 2005-10-21, 05:28 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
  •