Results 1 to 2 of 2

Thread: Assigned to Notification

  1. #1
    karlheinz is offline Sugar Community Member
    Join Date
    Jun 2007
    Posts
    18

    Default Assigned to Notification

    I am facing the problem if changing a contact to another assigned user, I will receive a notification, if the "old" assigned user assigns to the new one. If a contact is taken by the new user, the original assigned to user is receiving a notification.
    Is there a posibility to send the notification always to both related users?

    Regards

  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: Assigned to Notification

    It can be done by the following steps:

    Create a custom class which extends the default Contact.php
    Inside this function implement the method get_notification_recipients, initially defined in SugarBean.php. You have to add in $user_list the old assigned user.
    Create a custom controller for Contacts (copy from modules/Contacts/controller.php to custom/modules/Contacts/controller.php);
    Add the function action_save().

    Inside this function you need to override the $this->bean as an instance of the custom class.

    PHP Code:
        public function action_save() {
            require_once(
    'custom Contacts class');

            
    $this->bean = new CustomContactClass();
            
    $this->bean->save(!empty($this->bean->notify_on_save));
        } 

    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.

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: 2008-11-18, 08:27 AM
  2. Replies: 7
    Last Post: 2007-02-23, 04:54 AM
  3. Replies: 1
    Last Post: 2007-02-22, 11:41 AM
  4. Replies: 3
    Last Post: 2006-05-30, 05:29 PM
  5. Email Notification of Assigned Record?
    By jde968 in forum General Discussion
    Replies: 0
    Last Post: 2006-02-19, 09:00 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
  •