Results 1 to 6 of 6

Thread: campaign for accounts

  1. #1
    linaAA is offline Senior Member
    Join Date
    Apr 2009
    Posts
    48

    Default campaign for accounts

    Hi to everyone,
    i have to do a campaign, sending mails to a lot of companies.
    I can add leads in a campaign, but i can search them only by first name, last name and some fields else.
    I want to search them by lead's company type. How can i do that?

  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: campaign for accounts

    Hi Lina

    You have to copy the file modules/Leads/metadata/popupdefs.php into custom/modules/Leads/metadata/popupdefs.php and add the field 'account_name' into searchdefs section.

    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.

  3. #3
    eddiechen is offline Sugar Community Member
    Join Date
    Jun 2008
    Posts
    462

    Default Re: campaign for accounts

    I think you need create many to many relation between account and target list

    the easy way,

    create modules/ProspectLists/metadata/studio.php

    <?php
    if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');

    $GLOBALS['studioDefs']['ProspectLists'] = array(
    'LBL_DETAILVIEW'=>array(
    'template'=>'xtpl',
    'template_file'=>'modules/ProspectLists/DetailView.html',
    'php_file'=>'modules/ProspectLists/DetailView.php',
    'type'=>'DetailView',
    ),
    'LBL_EDITVIEW'=>array(
    'template'=>'xtpl',
    'template_file'=>'modules/ProspectLists/EditView.html',
    'php_file'=>'modules/ProspectLists/EditView.php',
    'type'=>'EditView',
    ),
    'LBL_LISTVIEW'=>array(
    'template'=>'listview',
    'meta_file'=>'modules/ProspectLists/listviewdefs.php',
    'type'=>'ListView',
    ),
    'LBL_SEARCHFORM'=>array(
    'template'=>'xtpl',
    'template_file'=>'modules/ProspectLists/SearchForm.html',
    'php_file'=>'modules/ProspectLists/ListView.php',
    'type'=>'SearchForm',
    ),

    );


    then go to studio, I belive you know how to do.

  4. #4
    eddiechen is offline Sugar Community Member
    Join Date
    Jun 2008
    Posts
    462

    Default Re: campaign for accounts

    Quote Originally Posted by andopes View Post
    Hi Lina

    You have to copy the file modules/Leads/metadata/popupdefs.php into custom/modules/Leads/metadata/popupdefs.php and add the field 'account_name' into searchdefs section.

    Cheers
    thank you , I have know how to custom the popup search.

  5. #5
    FishGuts is offline Senior Member
    Join Date
    Apr 2009
    Posts
    26

    Default Re: campaign for accounts

    Quote Originally Posted by andopes View Post
    You have to copy the file modules/Leads/metadata/popupdefs.php into custom/modules/Leads/metadata/popupdefs.php and add the field 'account_name' into searchdefs section.
    This came in handy for me too, thank you. The only thing I can't work out now is how to add a popup searchdef that lets you search by a related field like Accounts?

    AG

  6. #6
    linaAA is offline Senior Member
    Join Date
    Apr 2009
    Posts
    48

    Default Re: campaign for accounts

    i'm sorry, i don't know how to do now

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. How can I send a campaign to a list of accounts?
    By dachrak in forum Marketing/Campaign Management
    Replies: 18
    Last Post: 2010-07-29, 06:34 AM
  2. Accounts & Contact with two Campaign
    By shafique in forum Developer Help
    Replies: 0
    Last Post: 2009-04-21, 06:31 AM
  3. Replies: 0
    Last Post: 2008-10-28, 07:46 PM
  4. Campaign to Accounts
    By cmcfarland425 in forum Help
    Replies: 10
    Last Post: 2008-10-13, 06:06 PM
  5. Replies: 0
    Last Post: 2008-06-09, 11:41 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
  •