Results 1 to 2 of 2

Thread: Drop email address of a bean

  1. #1
    lrgervais Guest

    Default Drop email address of a bean

    Hello to everyone

    is there anyway in sugar to drop the email addresses of a bean(Contacts)?
    so far i know it is possible to add some email address to a bean, i would like to drop them all.

    Can anyone please help me?

    best regards,


  2. #2
    cmourizard's Avatar
    cmourizard is offline Sugar Community Member
    Join Date
    Oct 2007

    Default Re: Drop email address of a bean


    Can you try something like that:

    PHP Code:
    $contactId 'xxx-xx-xxxx-xxx';
    $contact BeanFactory::getBean('Contacts'$contactId);
    $contact->emailAddress->addresses = array();
    @cedricmourizard on Twitter
    Oldest SugarCRM partner in the world and Gold Partner / Partenaire GOLD SugarCRM
    Official French Translator / Responsable de la traduction Française

    51 Avenue Jean Jaurès - 69007 LYON - FRANCE - Tel : +33 4 27 70 53 70 | @synolia sur Twitter | Forum CRM-France

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 0
    Last Post: 2012-05-11, 06:26 PM
  2. Replies: 1
    Last Post: 2010-08-10, 02:48 PM
  3. Retrieve email address from case bean
    By milescook in forum Developer Help
    Replies: 1
    Last Post: 2009-03-06, 11:27 AM
  4. Have Email Address save on bean save
    By eggsurplus in forum Feature Requests
    Replies: 1
    Last Post: 2008-09-12, 03:16 PM
  5. Replies: 5
    Last Post: 2008-07-09, 02:53 AM


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts