Results 1 to 4 of 4

Thread: Search for Leads by Campaign returns no results

  1. #1
    rfsvicki is offline Senior Member
    Join Date
    Feb 2011
    Posts
    20

    Default Search for Leads by Campaign returns no results

    When I do an Advanced Search of Leads and enter the Campaign name via the popup the search returns 0 results. However, when I select any lead that was sent the campaign, I do see it listed in the Campaigns subpanel.

    I've seen other threads from early last year that indicate this might be a bug, but I think it would have been fixed by now if it was.

    Anyone else having this problem, or know a fix? Version 6.0.2 CE

  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: Search for Leads by Campaign returns no results

    This error is due some issue building the campaign_name where clause.
    Follow my tips here and let us know the sql query.

    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
    rfsvicki is offline Senior Member
    Join Date
    Feb 2011
    Posts
    20

    Default Re: Search for Leads by Campaign returns no results

    Thanks. Here's the query (the campaign name I'm searching on is Emylist90):

    SELECT leads.id ,leads_cstm.categories_c, leads.status , CONCAT(IFNULL(leads.first_name,''),' ',IFNULL(leads.last_name,'')) as name, leads.first_name , leads.last_name , leads.salutation , leads.account_name , leads.account_id , leads.primary_address_state , leads.lead_source , jt0.name campaign_name , jt0.assigned_user_id campaign_name_owner , 'Campaigns' campaign_name_mod, leads.campaign_id , leads.assigned_user_id FROM leads LEFT JOIN leads_cstm ON leads.id = leads_cstm.id_c LEFT JOIN campaigns jt0 ON jt0.id= leads.campaign_id AND jt0.deleted=0 AND jt0.deleted=0 where ((leads.campaign_id like '2dfae141-83d3-747b-2386-4cb1ff7f9d1f%' ) AND ( jt0.name like 'Emylist90%')) AND leads.deleted=0 ORDER BY leads.status ASC

  4. #4
    rfsvicki is offline Senior Member
    Join Date
    Feb 2011
    Posts
    20

    Default Re: Search for Leads by Campaign returns no results

    Thanks for offering to take a look at this query andopes. Just thought I'd bump this in case it got lost.

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-09-11, 03:27 PM
  2. Account name search returns no records in 5.1
    By fmtworldwidecom in forum Help
    Replies: 2
    Last Post: 2008-10-16, 07:11 PM
  3. search returns duplicate results for a user
    By dkelly in forum Installation and Upgrade Help
    Replies: 2
    Last Post: 2008-09-25, 09:48 AM
  4. Sorting by email field returns NO RESULTS!
    By bradym80 in forum Help
    Replies: 0
    Last Post: 2008-08-27, 05:37 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
  •