Results 1 to 4 of 4

Thread: Primary email address mass update?

  1. #1
    glynd is offline Sugar Community Member
    Join Date
    Jul 2009
    Posts
    51

    Default Primary email address mass update?

    Campaigns will not email unless the email address for contact or target, is set as primary address.

    The contacts detail view does not show (primary address) next to the email address, in most cases.

    If I click "edit" and then "save", (primary address) appears next to the address. I rather hope that the campaign will now send email for contacts/targets marked thus.

    2 questions.

    1 where does this (primary address) comes from or held. I assume a table?
    2 how can I update all contacts/targets so the email address is marked as primary?

    Any ideas on how to do this?

    TIA
    Glyn

  2. #2
    andopes's Avatar
    andopes is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Jul 2006
    Location
    São Paulo - Brazil
    Posts
    8,335

    Default Re: Primary email address mass update?

    Quote Originally Posted by glynd View Post
    1 where does this (primary address) comes from or held. I assume a table?
    The emails are saved into email_addresses table. There is a relationship table between all modules and emails: email_addresses_bean_rel.


    Quote Originally Posted by glynd View Post
    2 how can I update all contacts/targets so the email address is marked as primary?
    I suppose there is no easy to accomplish way.

    Cheers
    André Lopes
    DevToolKit / Project of the Month - June 2009
    Lampada Global Services- Open Source Solutions
    Avenida Ipiranga, 318
    Bloco B - CJ 1602
    São Paulo, SP 01046-010
    Brazil
    Office: +55 11 3237-3110
    Mobile: +55 11 7636-5859
    e-mail: andre@lampadaglobal.com

    Lampada Global delivers offshore software development and support services to customers around the world.
    Lampada is proud to be a SugarCRM Gold Partner, revolutionizing Customer Relationship Management.

    I DO NOT answer questions through PM and Email. If you need some help post your question into SugarForum.

  3. #3
    glynd is offline Sugar Community Member
    Join Date
    Jul 2009
    Posts
    51

    Default Re: Primary email address mass update?

    Thanks Andre,

    The table email_addr_bean_rel has a field primary_address which the default for is 0, which means the address is primary. However, somehow, this does not get reflected in the GUI as (Primary) does not appear next to the email address. This is a puzzle to me and can't see around this. Hopefully the campaign will send emails if I can get this to happen..

    Any further ideas?

    TIA
    Glyn

  4. #4
    glynd is offline Sugar Community Member
    Join Date
    Jul 2009
    Posts
    51

    Default Re: Primary email address mass update?

    This seems to work, Using SQL I changed the primary_address from 0 to 1 for all contact/targets and (Primary) now appears next to all email addresses. I will now try the campaign.
    Cheers
    Glyn

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 11
    Last Post: 2010-05-19, 08:28 AM
  2. Query Email Address Primary
    By dvelguru in forum Developer Help
    Replies: 2
    Last Post: 2009-11-09, 02:50 PM
  3. Replies: 11
    Last Post: 2009-08-16, 09:39 PM
  4. Replies: 4
    Last Post: 2009-06-28, 01:25 AM
  5. Replies: 0
    Last Post: 2006-04-14, 03:59 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
  •