Results 1 to 2 of 2

Thread: Adding Leads through MySQL

  1. #1
    cornella is offline Junior Member
    Join Date
    Apr 2009
    Posts
    1

    Default Adding Leads through MySQL

    I imported my Leads records directly into the Leads table through phpmyadmin. Then I added/connected emails into the Email_Addresses table. But my emails aren't connected yet because of the email bean.

    Is there an SQL query that would add records to the email_email_addr_bean_rel table? Or is there another way to map or bring those 2 records together?

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

    Default Re: Adding Leads through MySQL

    You only have to create one record for each lead-email relation in
    email_addr_bean_rel:

    id = any new uuid()
    email_address_id = id of email_addresses record
    bean_id = id of Leads record
    bean_module = 'Leads'
    primary_address = 1 if email is primary address, 0 else
    reply_to_address = 1 if email replyto address, 0 else
    date_created = now()
    date_modified = now()
    deleted = 0
    Harald Kuske
    Pre-Sales Engineer Central Europe

    SUGARCRM Deutschland GmbH
    Erika-Mann-Str. 53, 80636 Munich, Germany
    Email: hkuske@sugarcrm.com
    Home: http://www.sugarcrm.com


Thread Information

Users Browsing this Thread

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

Similar Threads

  1. MySQL error 1146 after adding new Module
    By 64674596 in forum Help
    Replies: 0
    Last Post: 2008-08-19, 01:18 PM
  2. Leads via php/mySQL
    By holsum in forum Help
    Replies: 4
    Last Post: 2007-12-26, 03:22 PM
  3. MySQL error 1054 when Adding a new user
    By CaseyMeraz in forum Help
    Replies: 1
    Last Post: 2007-10-04, 08:02 PM
  4. Customisation of adding leads
    By Jerome5 in forum Help
    Replies: 1
    Last Post: 2007-06-03, 07:32 AM
  5. MySQL error adding contact
    By schiettecatte in forum Help
    Replies: 3
    Last Post: 2005-11-28, 04:03 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
  •