Results 1 to 6 of 6

Thread: Add fields to email notification?

  1. #1
    HQnet is offline Member
    Join Date
    Mar 2009
    Posts
    12

    Default Add fields to email notification?

    Hi,

    In the email alert sent when a task is assigned to someone else I am trying to add the related account to the fields included in the message

    As per #10 in
    I added
    Account: {ACCOUNT_NAME}

    But the value is not showing (the label does show)

    Any ideas?

    TIA

  2. #2
    HQnet is offline Member
    Join Date
    Mar 2009
    Posts
    12

    Default Re: Add fields to email notification?

    I tried a couple of ideas but it's still not showing the value...

  3. #3
    cfay is offline Junior Member
    Join Date
    Nov 2006
    Posts
    3

    Default Re: Add fields to email notification?

    I am looking to do the same with Cases. Did you ever find a solution?

  4. #4
    HQnet is offline Member
    Join Date
    Mar 2009
    Posts
    12

    Default Re: Add fields to email notification?

    Quote Originally Posted by cfay View Post
    I am looking to do the same with Cases. Did you ever find a solution?
    Unfortunately I didn't find a solution so far.

    I had put it on hold and hoped to look at it again at some point, or maybe check if it got "fixed" in the 5.5 release, but I don't put much faith in that ...

  5. #5
    Peterwk is offline Member
    Join Date
    Mar 2010
    Posts
    9

    Default Re: Add fields to email notification?

    Here's the solution:

    Open this file: modules/LeadsLead.php

    Search for $xtpl->assign("LEAD_DESCRIPTION", $lead->description);

    Add these two lines:
    $xtpl->assign("LEAD_PHONE", $lead->phone_home);
    $xtpl->assign("LEAD_EMAIL", $lead->email1);

    You can then use these lines in /include/language/en_us.notify_template.html

    Phone: {LEAD_PHONE}
    Email: {LEAD_EMAIL}

  6. #6
    HQnet is offline Member
    Join Date
    Mar 2009
    Posts
    12

    Arrow Re: Add fields to email notification?

    Hi,
    I tried to adapt your suggestion to the Task module, which is what I am trying to customize

    in modules/Task/Task.php

    I added
    Code:
    $xtpl->assign("TASK_CONTACT", $task->contact_tasks);
    $xtpl->assign("TASK_ACCOUNT", $task->name);
    and some variations like
    Code:
    $xtpl->assign("TASK_CONTACT", $contacts->last_name);
    And I also added the other lines in the message template
    Code:
    Cuenta: {TASK_ACCOUNT}
    Contacto: {TASK_CONTACT}
    but I couldn't get it working, I only get the label but not the values in the notification (well, I got the task subject in the Account field once, but no very useful )

    I figure I am not constructing the "$task->name" part right... any ideas?

    Thanks in advance.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 2
    Last Post: 2009-07-21, 11:45 AM
  2. Replies: 3
    Last Post: 2009-06-02, 07:32 AM
  3. Replies: 1
    Last Post: 2009-02-03, 11:45 PM
  4. Adding fields to the Lead Notification Email
    By Berger in forum Developer Help
    Replies: 0
    Last Post: 2009-01-15, 12:19 PM
  5. Replies: 0
    Last Post: 2008-12-02, 06:11 PM

Tags for this Thread

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
  •