Results 1 to 5 of 5

Thread: adding a custom module in insert variable dropdownlist in email template

  1. #1
    shivaranjani is offline Sugar Community Member
    Join Date
    May 2008
    Posts
    174

    Lightbulb adding a custom module in insert variable dropdownlist in email template

    Hello,
    I have created couple of modules and would like to uses these fields while creation of email Template. I am able to add the module name in the drop down but I could not find a way to get the values retrieved from the concerned module in the variables. Has any one come across this adn got any solution, kindly share your experience and solutions. Thanks for your avlueble suggesstion and time.

    Sugar version:- 5.2.e and community version
    Operating system :- Linux
    Php :-5.2
    Mysql :- 5.2
    Webserver :- Apache

    Regards,
    ShivaRanjani

  2. #2
    Ezhilnilavan is offline Member
    Join Date
    Aug 2007
    Location
    Chennai
    Posts
    6

    Default Re: adding a custom module in insert variable dropdownlist in email template

    Got Solution.It works:

    Go to EmailTemplates.php

    Step1::
    ===========
    Modified your module here

    $loopControl = array(
    'Contacts' => array(
    'Contacts' => $contact,
    'Leads' => $lead,
    'Prospects' => $prospect,
    ),
    'Accounts' => array(
    'Accounts' => $account,
    ),
    'Users' => array(
    'Users' => $current_user,
    ),
    );

    $prefixes = array(
    'Contacts' => 'contact_',
    'Accounts' => 'account_',
    'Users' => 'contact_user_',
    );


    Step 2::
    ===========
    Go to /EmailTemapltes/EditView.php

    modify the drop down list.

    $dropdown="<option value='Accounts'>
    ".$mod_strings['LBL_ACCOUNT']."
    </option>
    <option value='Contacts'>
    ".$mod_strings['LBL_CONTACT_AND_OTHERS']."
    </option>
    <option value='wsi_m_ic_info'>
    ".$mod_strings['LBL_IC_INFO']."
    </option>
    <option value='Users'>
    ".$mod_strings['LBL_USERS']."
    </option>";

    Cheers,
    Ezhil Nilavan N

  3. #3
    manodeep is offline Member
    Join Date
    Nov 2009
    Posts
    6

    Default Re: adding a custom module in insert variable dropdownlist in email template

    Hi there,

    Did you ever got this thing to work, if so can you please share that in detail?

    Thanks
    Manohar

  4. #4
    darcy.rippon is offline Sugar Community Member
    Join Date
    Apr 2008
    Posts
    121

    Default Re: adding a custom module in insert variable dropdownlist in email template

    The solution provided above worked for me and my custom modules. I'm now working on pulling related opportunity data into an email template. I haven't gotten it to work yet.

  5. #5
    zconkle is offline Sugar Community Member
    Join Date
    Mar 2009
    Posts
    14

    Default Re: adding a custom module in insert variable dropdownlist in email template

    I am trying to insert variables from the cases module. Can someone please list out in detail how this has to be done?

    Thanks!

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: 2009-06-23, 02:37 PM
  2. Replies: 3
    Last Post: 2009-04-09, 01:12 PM
  3. Replies: 1
    Last Post: 2008-03-18, 10:25 AM
  4. Replies: 0
    Last Post: 2008-03-18, 06:10 AM
  5. Insert variable in email template!
    By gosugar in forum Help
    Replies: 0
    Last Post: 2006-04-14, 02:08 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
  •