Results 1 to 6 of 6

Thread: Sugar Import?

  1. #1
    Danielg42 is offline Sugar Community Member
    Join Date
    Jun 2006
    Location
    Orange County, CA
    Posts
    187

    Default Sugar Import?

    I was wondering if there is a way to make sugar import and replace, rather than import and create duplicates of things.
    We have a database that occasionally needs to be syncronised with sugar and everytime I import the data, sugar creates a bunch of new duplicate accounts.

  2. #2
    dstrickler is offline Sugar Community Member
    Join Date
    Mar 2006
    Posts
    77

    Default Re: Sugar Import?

    Version 4.5 of Sugar (will be released very soon) has some de-dupe functions in it that may help. You can test a copy online so you can simulate your imports. I can't remember the URL, but I'm sure its in the Forum somewhere...
    Dave Strickler
    MailWise LLC
    www.mailwise.com
    Intelligent Email Protection, compatible with Sugar




  3. #3
    Danielg42 is offline Sugar Community Member
    Join Date
    Jun 2006
    Location
    Orange County, CA
    Posts
    187

    Default Re: Sugar Import?

    Is there anyway to get this functunalitiy in sugar 4.2.1b?

  4. #4
    alevesque is offline Sugar Community Member
    Join Date
    Aug 2006
    Location
    Canada
    Posts
    33

    Default Re: Sugar Import?

    My solution is to check everythiong in Ms Access before doing the import.

    I have sugarcrm 4.2.1b with MySQL.

    i link my SugarCRM database (with odbc driver) and my new_to_import data to access and run a Query.

    This allow me to see if account name are matching (or if a few typo need to be corrected).

    I then export this matching data with the matching id from my sugracrm account. The SQL query read like this:

    SELECT accounts.id, new_to_import.*
    FROM accounts INNER JOIN new_to_import ON accounts.name = new_to_import.ACCOUNT
    ORDER BY accounts.id DESC;


    finally, i create a query showing all new_to_import data but only matching sugarcrm data. I then filter on account id is null.
    I then export this unmatchnig data (without account id) to complete the procedure.
    the sql for this is the following:

    SELECT new_to_import.*
    FROM accounts RIGHT JOIN new_to_import ON accounts.name = new_to_import.ACCOUNT
    WHERE (((accounts.id) Is Null))
    ORDER BY accounts.id DESC;

    At the end i have 2 files ready for import : match.txt and unmatch.txt

    a build-in function would be easier but in my case this got the job done.
    Hope this help.
    Alain Levesque
    Business Developpement
    Miro Computer Rental
    www.mirolocation.com

    I am an active member of the Meeting Professionals International ( mpiweb.org )

  5. #5
    caiomsouza is offline Sugar Community Member
    Join Date
    Jul 2006
    Location
    São Paulo, Brazil
    Posts
    11

    Default Re: Sugar Import?

    Hello Everybody,

    I am also having this same problem.

    I was wondering If someone already have some scripts or even a access database or mysql database to share with the community.

    I would like to import dates to accounts and contacts and do not have the duplicate problem.

    Best Regards,

    Caio Moreno de Souza

  6. #6
    siotha is offline Member
    Join Date
    Sep 2007
    Posts
    6

    Default Re: Sugar Import?

    oops i have the same problem but, i'm not as DB savvy.

    I'm an admin in my sugar account and want to use the basic import button to update accounts. Help?

Thread Information

Users Browsing this Thread

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

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
  •