Results 1 to 5 of 5

Thread: Question about the Import function

  1. #1
    sbantz is offline Sugar Community Member
    Join Date
    Sep 2007
    Posts
    52

    Default Question about the Import function

    We recently imported 1500 "Accounts" from our old contact management software. Of course, later on the sales people said they were missing the website for the accounts. I was able to do another export from the old system and I now have a csv file that has the account name and the website address. The account name exactly matches what is in SugarCRM already.

    Can I use the import function to import just the website field? I have been scared to try it because I don't want to end up with 1500 more accounts with just the website field filled in. I am looking for specific instructions on how to import this website field to existing records.

    Thanks. I hope that makes sense.

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

    Default Re: Question about the Import function

    I think you can import all the fields and use the merge function.

  3. #3
    sbantz is offline Sugar Community Member
    Join Date
    Sep 2007
    Posts
    52

    Default Re: Question about the Import function

    I thought about doing that, but it seems like a ton of work merging 1500 accounts two at a time.

    I ended up using MS Access and the ODBC driver to create an update query. Of course, I tested it on a test database first to make sure it would work. Basically, I linked the accounts table from Sugar to an imported table that had the account name and the website URL. I joined the two tables in an update query (joining accounts.name to websites export.Company from my custom table) and had it populate the [accounts].[website] when the account names matched. Worked like a champ.

    The query looked something like this:
    UPDATE accounts INNER JOIN [Websites export] ON accounts.name = [Websites export].Company SET accounts.website = [websites export].[web page]
    WHERE (((accounts.name)=[websites export].[Company]));
    Last edited by sbantz; 2007-10-04 at 08:06 PM.

  4. #4
    ZaleTabakman is offline Junior Member
    Join Date
    Dec 2007
    Posts
    2

    Unhappy Re: Question about the Import function

    I am not a programmer - just a simple sales person wanting to use SugarCRM.

    This is a big problem - I use Plaxo and LinkedIn to maintain a large list of leads.

    Everytime I want to update - say a change in e-mail - this will be 4,500 records updated.

    Is there a way of making some of this code into a plugin that is run to merge?

    Say some user selected field (such as e-mails) match then Merge records and no other fields are in conflictt - then merge
    otherwise show user a number of choices
    1) Force Merge - lastest record over earlier record
    2) Choose case by case

    Zale

  5. #5
    berthelemy is offline Junior Member
    Join Date
    Aug 2008
    Posts
    1

    Default Re: Question about the Import function - update via import

    What seems to happen is that SugarCRM is setup to only allow a one-off import. There's no way of updating existing data. If you're trying to keep two systems synchronized (eg. accounts and CRM) then this leads to a nightmare scenario of having to update them independently.

    This is something I'd love to see sorted.

    I'll put in a feature request.

    Mark

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 0
    Last Post: 2007-08-08, 02:47 PM
  2. Import Function in Custom Modules
    By simpsond in forum Developer Help
    Replies: 7
    Last Post: 2007-07-06, 04:41 PM
  3. Import Question
    By Deland01 in forum Help
    Replies: 8
    Last Post: 2007-04-18, 05:53 PM
  4. Question on function setQuery
    By Sing in forum Developer Help
    Replies: 1
    Last Post: 2005-07-13, 06:18 PM
  5. Newbie Import Question
    By gremln007 in forum Help
    Replies: 0
    Last Post: 2004-11-18, 02:41 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
  •