Results 1 to 4 of 4

Thread: Email notification for custom relate field

  1. #1
    L0ki is offline Member
    Join Date
    Dec 2010
    Posts
    18

    Default Email notification for custom relate field

    Hi,

    i'm trying to enable email notification for a custom module.
    I am using 2 fields (key_account_technical and key_account_business), they are related to the users module (like the assigned_user_id field).
    And if i choose a user for key_account_technical or key_account_business he should get a notification.
    It is working well with the assigned_user_id field, but not with my 2 custom fields.

    Any help would be much appreciated.

    Best regards,
    L0ki

  2. #2
    eggsurplus's Avatar
    eggsurplus is offline Sugar Community Member
    Join Date
    Dec 2005
    Location
    Minnesota
    Posts
    2,343

    Default Re: Email notification for custom relate field

    You'll have to create custom logic for those fields to send notifications if they are set. You can use a logic hook or override the save function in your custom module.

  3. #3
    L0ki is offline Member
    Join Date
    Dec 2010
    Posts
    18

    Default Re: Email notification for custom relate field

    Thx for the answer.

    i already know how to create a logic hook but how do i activate the notification or in which file do i find the default code how it works for the assigned_user_id field, then i would be able to adopt it for my custom fields

  4. #4
    eggsurplus's Avatar
    eggsurplus is offline Sugar Community Member
    Join Date
    Dec 2005
    Location
    Minnesota
    Posts
    2,343

    Default Re: Email notification for custom relate field

    Check data/SugarBean.php->send_assignment_notifications. That'll get you going.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Relate Custom field.
    By yuri.gelman in forum Developer Help
    Replies: 0
    Last Post: 2010-06-24, 10:14 AM
  2. Replies: 2
    Last Post: 2010-05-05, 09:03 AM
  3. custom module email notification
    By ctran-prowess in forum Help
    Replies: 6
    Last Post: 2010-02-10, 05:57 PM
  4. Lead Notification Email - Add custom field
    By sinkplaat in forum General Discussion
    Replies: 2
    Last Post: 2008-02-22, 04:14 PM
  5. custom module custom field relate type error
    By kidpollo in forum General Discussion
    Replies: 0
    Last Post: 2007-03-24, 02:14 AM

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
  •