Results 1 to 2 of 2

Thread: Building a list

  1. #1
    pmorettini is offline Junior Member
    Join Date
    Mar 2007
    Posts
    1

    Default Building a list

    Hi,

    I've got a bit of an unusual situation and I'm looking for some help. I'm a consultant and have a client using Sugar OpenSource. They have entered about a few thousand names into the database, but didn't do it in the nomal matter.

    They entered everything into "Accounts" rather than leads or targets. I am now trying to build a list for an email marketing campaign of all of their prospects. Unfortunately the prospects are mixed in with current customers within Accounts, and I can't seem to find an easy way to segragate them at the individual contact level.

    In the Account screen, I can sort on the different categories (current customers, prospects, suspects, resellers, etc.) But this sort only takes me to the COMPANY level view of the data, and I need to make lists of the individual CONTACTS coded in each of the desired categories we want to use for the mailing. I don't see an easy way to do this--I certainly don't want to go into each company account, and manually extract the contact info to build a list. That will be very painful But I can't see any other way to do it.

    They are running the latest version of Sugar OpenSource, but I don't know any of the other technical details. If it is important to this question I can find out.

    Can anyone help me?

    Thanks,

    Phil Morettini

  2. #2
    Markku's Avatar
    Markku is offline Sugar Community Member
    Join Date
    Nov 2004
    Location
    Helsinki
    Posts
    910

    Default Re: Building a list

    Hi,

    Maybe you could update contacts title field (or some other field) according accounts category using sql query.

    Running the following query will find all contacts where company category (account_type actually) is "Prospect" and update contacts title field to "Prospect". As you have several categories you would need run the query couple of times and change the WHERE and SET parameters.

    Hope this helps

    Code:
    UPDATE contacts INNER JOIN (accounts INNER JOIN accounts_contacts ON accounts.id = accounts_contacts.account_id) ON contacts.id = accounts_contacts.contact_id SET contacts.title = "Prospect"
     WHERE (((accounts.account_type)="Prospect"));

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 4
    Last Post: 2009-10-28, 10:21 AM
  2. Complex Campaign Target List Building
    By original in forum Help
    Replies: 1
    Last Post: 2006-11-01, 02:49 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
  •