Results 1 to 2 of 2

Thread: Importing Relationships

  1. #1
    rodbell is offline Junior Member
    Join Date
    Nov 2010
    Posts
    3

    Default Importing Relationships

    Hey Guys,
    I apologise if there is a solution out there for this. I have searched long and hard and didn't find anything but find it hard to believe that this hasn't been encountered.

    What I am trying to do:
    I have a custom module, Orders.
    It contains a relationship to Account.

    I am trying to import the accounts, then the orders with the relationships intact.

    I have noticed that the tool provided only allows you to provide and account name.
    My data doesn't guarantee uniqueness on Account Name.

    I really wish to relate on Id.
    Am I missing something in the tool?

    If not are the valid 'workarounds' to use either SQL or the API?

    Thanks.
    Rod.

  2. #2
    robertbmirth is offline Sugar Community Member
    Join Date
    Jun 2010
    Location
    Irvine, CA
    Posts
    345

    Default Re: Importing Relationships

    if you import with headers and import with an account_id as the header, sugar is smart enough to recognize this as the associated account id and it should link it for you. Note, however, that this is by sugar's id system, so unless you import the accounts with predefined ids that your orders know (i.e. when you import accounts, you have an id field on the import), its going to run haywire.
    Robert Beckman
    Software Engineer
    Mirth Corporation

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Need help about relationships
    By franckt in forum Help
    Replies: 0
    Last Post: 2010-04-01, 04:53 PM
  2. importing relationships
    By PHPWhizzkid in forum Developer Help
    Replies: 5
    Last Post: 2009-04-01, 12:28 PM
  3. Importing into modules with many-to-many relationships
    By URtech in forum Feature Requests
    Replies: 0
    Last Post: 2009-02-05, 11:34 PM
  4. relationships
    By dkelly in forum Developer Help
    Replies: 4
    Last Post: 2005-06-15, 11:26 AM

Tags for this Thread

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
  •