Results 1 to 2 of 2

Thread: Additional fields needed in Notification Emails

  1. #1
    Kaos77 is offline Member
    Join Date
    Jan 2009
    Posts
    7

    Default Additional fields needed in Notification Emails

    Ok, I've googled, wiki'd and searched Sugarforums and have found only bits of what I need to accomplish this.

    I need to add additional fields to notification emails. For example, I want to add Account name and contacts/phone numbers to a Case assignment email.

    I know the files that need edited, I just don't know how to tell the files to search a different table for the data to look for.

    Once I get the proper code in /modules/Cases/Cases.php it should be as simple as bringing over the variable into /include/language en_us.notification_template.html, correct? The problem I am having is how to get the variable in Cases.php to grab the correct field from whatever table I am getting my data from.

    Any pointers or tutorials someone could point me to would be great!

    Running Sugar 5.1c with Mysql 5.0.62 and PHP 5.2.6

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

    Default Re: Additional fields needed in Notification Emails

    If you can edit the email body you should be able to insert new fields with a combination of: $+beanname+_+fieldname. For example, for contacts you could add the last name by inserting: $contact_last_name.

    Example:
    PHP Code:
    Hello $contact_first_name,

    Your case.... 

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. relationship additional fields. help, please!
    By stasdu in forum Developer Help
    Replies: 11
    Last Post: 2011-03-27, 05:37 PM
  2. Relationship adding Additional Fields
    By eli.lindner in forum Developer Help
    Replies: 4
    Last Post: 2009-10-02, 03:53 AM
  3. Relationship with additional custom fields
    By dcolley in forum Developer Help
    Replies: 5
    Last Post: 2008-07-29, 01:07 PM
  4. Using additional fields in leadCapture...
    By mekozloski in forum Help
    Replies: 1
    Last Post: 2005-03-15, 06:23 PM
  5. additional/other fields
    By Se7eN in forum Feature Requests
    Replies: 0
    Last Post: 2004-07-13, 03:05 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
  •