Results 1 to 4 of 4

Thread: batch update: add newsletter contacts using SQL?

  1. #1
    wivaku is offline Sugar Community Member
    Join Date
    Oct 2006
    Posts
    38

    Default batch update: add newsletter contacts using SQL?

    Hi all,

    Environment: SugarPro 5.2.0c with MySQL 4.

    Trying to batch update a list of contacts so they are subscribed to a certain newsletter (campaign).
    Either using the user interface or using direct database access.

    Couple of questions:
    - can I use the user interface for this?
    (for individual contacts: contact detail view -> Manage Subscriptions, but how for batch update?)
    - when using direct database access: there's the contacts and campaigns table,
    but where is the link between the two stored?
    Was expecting something similar to accounts_opportunities, but could not find this.

    -Winfred

  2. #2
    crmsiva's Avatar
    crmsiva is offline A Sugar Hero
    Join Date
    Jan 2009
    Location
    Chennai, India
    Posts
    1,130

    Default Re: batch update: add newsletter contacts using SQL?

    There is a project for community edition in sugarforge, which do exactly what you are expecting. You can find it here. But i don't know whether it works good for professional edition of sugar. Better you can contact Markku. He is one of the project Admins for this project.

  3. #3
    wivaku is offline Sugar Community Member
    Join Date
    Oct 2006
    Posts
    38

    Default Re: batch update: add newsletter contacts using SQL?

    This is why I love the community: fast and friendly help!

    Actually, it helped to switch on the light in my head... I can use Target lists for this.

    I created a (temporary) report, selected the target list and used Select from Reports. Done. :-)

    Thanks for the tip and sending me in the right direction!

    (Not needed right now, but still curious: where is it stored in the database?)

  4. #4
    crmsiva's Avatar
    crmsiva is offline A Sugar Hero
    Join Date
    Jan 2009
    Location
    Chennai, India
    Posts
    1,130

    Default Re: batch update: add newsletter contacts using SQL?

    Check the table prospect_lists_prospects.
    For contacts, the field related_id is the id from contacts table, prospect_list_id is the id from prospect_lists table and related_type=Contacts

    This is how contacts is related to prospect lists or target lists

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Batch to create Accounts
    By Ake in forum Developer Help
    Replies: 3
    Last Post: 2008-10-14, 10:48 PM
  2. I Can't Mass Update In Contacts
    By aguerrave in forum Installation and Upgrade Help
    Replies: 0
    Last Post: 2008-02-16, 07:56 PM
  3. Replies: 0
    Last Post: 2007-05-08, 12:57 PM
  4. Update table contacts
    By souza in forum Help
    Replies: 1
    Last Post: 2007-05-08, 06:08 AM
  5. Batch Delay Time?
    By mxway in forum Marketing/Campaign Management
    Replies: 2
    Last Post: 2006-09-25, 10:25 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
  •