Results 1 to 3 of 3

Thread: Export contacts from a Target List

  1. #1
    alexvf is offline Junior Member
    Join Date
    Mar 2009
    Posts
    4

    Default Export contacts from a Target List

    Hi,

    I need to export contact details from a specific Target List but apparently I can't do that using SugarCRM.

    To solve this I want to query the database for those results. I already found the tables I need (prospects and prospect_lists) but I don't know how to relate them. There doesn't seem to be a common field between them and I don't know Sugar's database model.

    Can you please help me?

    Thank you in advance for your help.

    Regards,
    Alexvf

  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: Export contacts from a Target List

    Hi Alexvf

    The tables:

    prospect_lists.id = prospect_lists_prospects.prospect_list_id
    prospect_lists_prospects.related_id = contacts.id
    prospect_lists_prospects.related_type = 'Contacts'

    Regards
    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
    alexvf is offline Junior Member
    Join Date
    Mar 2009
    Posts
    4

    Default Re: Export contacts from a Target List

    Hi André,

    That is it. You saved me! :-)

    Quote Originally Posted by André
    The tables:

    prospect_lists.id = prospect_lists_prospects.prospect_list_id
    prospect_lists_prospects.related_id = contacts.id
    prospect_lists_prospects.related_type = 'Contacts'
    I needed this:

    prospect_lists.id = prospect_lists_prospects.prospect_list_id
    prospect_lists_prospects.related_id = prospects.id
    prospect_lists_prospects.related_type = 'Prospects'

    But the info I needed was all in your answer.

    Muito obrigado!

    Regards,
    ---
    Alexandre

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. A small script for target list export
    By serkanyaramaz in forum Downloads
    Replies: 13
    Last Post: 2010-04-28, 03:32 AM
  2. Export Target List?
    By jaimesteele in forum Help
    Replies: 6
    Last Post: 2009-03-16, 01:27 PM
  3. I need help with script to export Target List
    By darrencliff in forum Help
    Replies: 0
    Last Post: 2008-12-15, 04:45 PM
  4. Export target-list as CSV
    By hheckner in forum General Discussion
    Replies: 0
    Last Post: 2006-12-04, 10:19 AM
  5. Replies: 0
    Last Post: 2006-09-22, 06:26 AM

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
  •