Results 1 to 6 of 6

Thread: Missing Fields when Importing Opportunities

  1. #1
    mrmmm is offline Sugar Community Member
    Join Date
    Dec 2005
    Posts
    71

    Default Missing Fields when Importing Opportunities

    Hi,
    I am running into a small problem when importing data into Sugar 5.0 OS. When mapping the fields to be imported, there is no "Assigned to ID:" field in the list. There is an "Assigned to" field, but when I mapped that to a field containing user IDs it did not get imported (the field was null for all imported records). Is there a way to control which fields are available in the "Import" function? Why aren't all of them available? (The IDs that I am trying to map already exist as sugar users since I imported them earlier)
    Any suggestion on how to solve this issue without resorting to running UPDATE queries in MySQL or doing the whole import by running INSERT?

    Thank you.

  2. #2
    dpatech is offline Sugar Community Member
    Join Date
    Oct 2007
    Location
    NC
    Posts
    287

    Default Re: Missing Fields when Importing Opportunities

    You can change this in the following file:

    \include\SugarObjects\implements\assignable\vardef s.php

    Find the definition of "assigned_user_id" and change the "Importable" property to true. This should be on line 48. After doing this you need to go into Admin-> Repair-> "Clear Vardefs Data Cache". Uncheck all options except "Clear Vardefs" and then click Repair.

    The "Assigned To ID" field should now be listed on the Opportunities import as a field you can choose.
    - Sugar Team
    dpa Technology LLC
    e-mail: dpaDeveloper@dpatechnology.com
    web: http://www.dpatechnology.com

  3. #3
    mrmmm is offline Sugar Community Member
    Join Date
    Dec 2005
    Posts
    71

    Default Re: Missing Fields when Importing Opportunities

    Thank you for the quick and very helpful reply. I did the changes, and tried the import.
    If before the field for all records was null, now it is set to "1" which is the ID of the Admin user.
    Any idea why it would not set the correct user ID?

  4. #4
    kuske's Avatar
    kuske is offline Sugar Community Member
    Join Date
    Oct 2007
    Location
    Germany
    Posts
    2,597

    Default Re: Missing Fields when Importing Opportunities

    On import in Version 5, assigned_to should not be mapped to the id of the user but to the user_name of the user.
    In demo environment e.g. to chris not to chris_id.

  5. #5
    mrmmm is offline Sugar Community Member
    Join Date
    Dec 2005
    Posts
    71

    Default Re: Missing Fields when Importing Opportunities

    So there is no way to import using the "assigned to id"? The problem is that in the export from my custom system, I get the "user id" on the opportunity, not the user name. (I should be able to join the user table to get the name on there, but it would be easier to just map to ID).

    Thank you.

  6. #6
    kuske's Avatar
    kuske is offline Sugar Community Member
    Join Date
    Oct 2007
    Location
    Germany
    Posts
    2,597

    Default Re: Missing Fields when Importing Opportunities

    I'm afraid not!
    If you want to user the id of the user you must change code of some modules.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 10
    Last Post: 2007-05-23, 11:16 PM
  2. Replies: 3
    Last Post: 2007-02-05, 09:43 PM
  3. Replies: 1
    Last Post: 2006-09-11, 03:38 PM
  4. Missing Custom Fields
    By newmember in forum Help
    Replies: 6
    Last Post: 2006-08-08, 11:27 PM
  5. Replies: 1
    Last Post: 2005-10-19, 04:57 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
  •