Results 1 to 5 of 5

Thread: How to import users from excel file?

  1. #1
    lue
    lue is offline Junior Member
    Join Date
    Apr 2007
    Posts
    2

    Default How to import users from excel file?

    Does anyone know how I can import 6000 users from a csv file into the users table? I was able to use sugar's import feature to import from a csv file into the contacts table, but I'm not seeing how I can import from a csv into users.

    Thanks for any help.
    Lue

  2. #2
    roblaus's Avatar
    roblaus is offline Sugar Community Member
    Join Date
    Dec 2006
    Location
    Vienna / Austria
    Posts
    2,850

    Default Re: How to import users from excel file?

    Hi,

    Unfortunately this must be done through direct DB manipulation. But since none of the available tools for MYSQL is really good for importing (IMO) I recommend to dump your users table and replace the insert values with you own ones. Then just run the result as query.
    There are for sure more sophisticated ways but that's the one I use (as always: BACKUP)

    rgds
    rl
    __________________________
    Robert Laussegger
    http://www.iscongroup.net

    Bei Fragen: support@iscon.at
    Die deutschen Sprachdateien für SugarCRM und das deutsche Handbuch gibt es hier: http://goo.gl/kPsAz
    Ab sofort auch mit 6.4.2

  3. #3
    egork is offline Sugar Community Member
    Join Date
    Nov 2006
    Location
    Duesseldorf, Germany
    Posts
    50

    Default Re: How to import users from excel file?

    You might want to save the file as tab delimited save it to /home/sugar/TABLENAME.txt and then use the mysqlimport tool. Create a script like the example below and run it. It will upload all records into TABLENAME table. You have to watch yourself for the uniqueness of primary ids etc.

    /usr/local/mysql/bin/mysqlimport \
    --default-character-set=latin1 \
    --verbose \
    --host=YOUR_HOSTNAME \
    --local \
    --fields-terminated-by='\t' \
    --lines-terminated-by='\n' \
    --ignore-lines=1 \
    --user=YOUR_MYSQL_USERNAME\
    -pYOUR_PASSWORD \
    --columns=\
    id\
    ,user_name\
    ,first_name\
    ,last_name\
    # add other columns
    ,email \
    YOUR_DATABASE_NAME /home/sugar/TABLENAME.txt

    Also you may try jitterbit.com, they have a guid() function to generate unique ids and can connect to SugarCRM.

  4. #4
    Cypriot is offline Member
    Join Date
    Mar 2010
    Posts
    29

    Default Re: How to import users from excel file?

    Hi There,
    Is there any way that i can import from Excel file into SugarCRM ?

    On my excel file on Each ROW i have Contact, Account and two product detail.. so thats why i need advice on this! each row is eac account with their contact and products details.

    Thanks

  5. #5
    FreeGroup is offline Junior Member
    Join Date
    May 2010
    Posts
    1

    Default Re: How to import users from excel file?

    Hi,

    you can use http://www.dbTube.org to import your Excelsheet into the database.

    Greetings

    Andreas

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. PATCH: Import multiple vcards in a single file
    By insightfulsolutions in forum Downloads
    Replies: 3
    Last Post: 2009-01-22, 12:39 PM
  2. Replies: 2
    Last Post: 2006-04-18, 02:47 PM
  3. Replies: 3
    Last Post: 2006-02-17, 05:12 PM
  4. Replies: 1
    Last Post: 2005-08-06, 06:38 PM
  5. PATCH: HTML Emails and Templates
    By funkypenguin in forum Downloads
    Replies: 2
    Last Post: 2005-05-31, 10:14 AM

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
  •