Results 1 to 4 of 4

Thread: Unable to filter Contacts by Campaign?

  1. #1
    chiefnt is offline Member
    Join Date
    Jun 2008
    Posts
    9

    Default Unable to filter Contacts by Campaign?

    I have a new install of 5.2.0e. I have added the Campaign field to both the Basic and Advanced search layout in Contacts, however, when I try to search my Contacts by Campaign no results show up. I have only two contacts, one with a Campaign associated with it and one without, I don’t understand why there are no search results for my contacts when I filter by campaign.

    Am I missing something obvious? Please help me get this working.

    Thanks.

  2. #2
    SamuelAugy is offline Sugar Community Member
    Join Date
    Sep 2007
    Location
    Paris (France)
    Posts
    238

    Default Re: Unable to filter Contacts by Campaign?

    Hello,

    Your new field are with a select button ?
    If it is not the case, try to go in a campaign and take some characters behind the parameter "record=" in the URL.
    Paste these characters into your new field. If that work it's because your field use the id and not the name of your campaign.

    Could you try that ?

  3. #3
    chiefnt is offline Member
    Join Date
    Jun 2008
    Posts
    9

    Default Re: Unable to filter Contacts by Campaign?

    Thanks for the reply.

    The Campaign search field does have an associated Select button, which pulls up the Campaign name.

    I also tried to search on the campaign id as you suggested but there were still no results shown.

    Any other suggestions?

    Thanks!

  4. #4
    chiefnt is offline Member
    Join Date
    Jun 2008
    Posts
    9

    Default Re: Unable to filter Contacts by Campaign?

    I got this working.

    In the Contacts, SearchFields.php I changed the code from 'db_field"=>array('campaign_id') to what is below.





    'campaign_name'=> array(
    'query_type'=>'default',
    'operator' => 'subquery',
    'subquery' => 'SELECT campaigns.id FROM campaigns WHERE campaigns.deleted=0 and campaigns.name LIKE',
    'db_field'=>array('campaigns.id')),
    );

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. email contacts filter
    By kbromwich in forum Developer Help
    Replies: 0
    Last Post: 2009-04-21, 02:44 AM
  2. Filter tasks,contacts,accouts, list
    By piccirm2 in forum General Discussion
    Replies: 2
    Last Post: 2008-05-02, 01:05 PM
  3. Contacts filter problem
    By ferrarih in forum Help
    Replies: 0
    Last Post: 2007-12-21, 06:13 PM
  4. Replies: 0
    Last Post: 2006-06-15, 01:34 PM
  5. Filter duplicates in email campaign
    By pinetree in forum Help
    Replies: 1
    Last Post: 2006-02-16, 03:13 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
  •