Results 1 to 7 of 7

Thread: Yet another person who wants to import tasks!

  1. #1
    sc123 is offline Sugar Community Member
    Join Date
    May 2007
    Posts
    45

    Default Yet another person who wants to import tasks!

    I've searched the forums and found a dozen or more threads asking how to import tasks, most unanswered. How can this be accomplished? I have a csv file full of tasks and I'm using Sugar 4.5.1b on linux. Sugar is useless if I can't import my tasks!

    Thanks,
    SC

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

    Default Re: Yet another person who wants to import tasks!

    Hi,

    There is no direct way but with phpmyadmin it should work easily. If you have to do it on a permanent basis (say daily) then use Jitterbit or similar.

    Do your tasks have any other connections than "assigned_to" e.g. like contact, account or opportunity? And does your csv file provide these connections - say the UIDs of yor users, accounts, contacts, opportunities?

    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
    sc123 is offline Sugar Community Member
    Join Date
    May 2007
    Posts
    45

    Default Re: Yet another person who wants to import tasks!

    It would only be a one time import. Each task in my old system was assigned to a user, had a category, an owner, location, date/time, and notes amount a few other minor things. I would need to be able to import those fields in. Are there import templates or anything available?
    Thanks,
    SC

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

    Default Re: Yet another person who wants to import tasks!

    This is an example (4.5.1c). Get your user IDs from Sugar, paste them into your file and then set up your csv so that it reflects the structure below. Paste it replacing my data. Then run this as simple query

    INSERT INTO `tasks` (`id`, `date_entered`, `date_modified`, `assigned_user_id`, `modified_user_id`, `created_by`, `name`, `status`, `date_due_flag`, `date_due`, `time_due`, `date_start_flag`, `date_start`, `time_start`, `parent_type`, `parent_id`, `contact_id`, `priority`, `description`, `deleted`) VALUES

    ('8ad806b4-eef9-6333-1e38-46262547113a', '2007-04-18 14:02:48', '2007-04-18 14:02:48', '59e9acbd-7929-9acd-48a9-4575dd46219d', '59e9acbd-7929-9acd-48a9-4575dd46219d', '59e9acbd-7929-9acd-48a9-4575dd46219d', 'expect email from unknown to Zsolti', 'Not Started', 'off', '2007-04-23', '10:00:00', 'off', NULL, NULL, 'Accounts', NULL, NULL, 'Medium', 'Zsolti spoke to him, needs no acc. but stock, invoicing, probably production. Will send email to Zsolt.\r\n\r\nNothing known about company, size, industry and budget.', 0),

    ('30c04957-5a07-8088-4655-46247e328d07', '2007-04-17 07:57:59', '2007-04-19 12:15:10', '59e9acbd-7929-9acd-48a9-4575dd46219d', '59e9acbd-7929-9acd-48a9-4575dd46219d', '59e9acbd-7929-9acd-48a9-4575dd46219d', 'send email with presentation and price offering, f', 'Completed', 'off', '2007-04-18', '10:00:00', 'off', NULL, NULL, 'Opportunities', 'ea6f7ae6-ff6c-9229-6c6d-461f6e6e712e', 'f334cfe9-e8c5-7dd9-88ee-461f6b693521', 'Medium', NULL, 0);

    Ask if you have any further questions

    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

  5. #5
    jabhawk's Avatar
    jabhawk is offline Senior Member
    Join Date
    Dec 2008
    Location
    New Jersey - Morris County
    Posts
    25

    Default Re: Yet another person who wants to import tasks!

    I have been reading the posts for loading tasks into the system but I have not seen where anyone assigns the "id" value of each note record. This looks to be a unique string so it would have to be auto-assigned or assigned by a function.

    I need to load, on a regular basis, a history of activity that will be provided to me from external sources. I will do all the formatting and linking before the CSV file is built but I need to know how to assign the correct Id to a new record.

    Jon Black
    www.hawkswing.com

  6. #6
    tbladecki is offline Member
    Join Date
    Nov 2007
    Posts
    8

    Default Re: Yet another person who wants to import tasks!

    I can assist you with the import, the best way that i have found to do it is directly to the DB, in order to do it you must understand the DB structure or the DB will be rendered useless. Please contact me via PM and we can discuss the solution

  7. #7
    SugarDev.net is offline Sugar Community Member
    Join Date
    Feb 2008
    Posts
    1,401

    Default Re: Yet another person who wants to import tasks!

    Sugar's ID is not unique to Sugar, but rather a general approach to unique IDs called UUID.

    You can use the MySQL function UUID() to generate the IDs. See also the mysql docs.
    Developers go here
    Businesses go there (Dutch)

    Modules:
    SugarDev.net Developer Tools | Config | Dutch Language Pack
    "Nothing gets fixed unless there is a bug"

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Import Tasks From Salesforce to SugarCRM
    By jdgrafix in forum Help
    Replies: 1
    Last Post: 2007-04-07, 08:51 PM
  2. How do I Import Cases from Salesforce.com?
    By dstevens in forum Help
    Replies: 1
    Last Post: 2005-12-31, 01:55 AM
  3. Serious issue with sugarcrm 3.5.1.c
    By wp.rauchholz in forum Help
    Replies: 17
    Last Post: 2005-12-01, 07:22 AM
  4. Replies: 1
    Last Post: 2005-08-06, 06:38 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
  •