Advertisement

05.30.2008 at 06:55AM PDT, ID: 23444550 | Points: 500
[x]
Attachment Details

How do I create views where criteria is based on lookups to other related objects?

Asked by velir in Salesforce.com, CRM Software

Tags: ,

Hi everyone,

i'm involved in a project that is moving a home-grown CRM tool into Salesforce - we're trying to keep as much of our old data as possible, and trying to fit some of our old data model into Salesforce.  This has involved us creating a number of custom objects, and for the most part, we're having success in getting the data loaded.

However with this approach, i've been having some trouble writing some views in Salesforce.  We have a number of custom objects in Salesforce.  First, we have one called a "Publication" - they basically represent bound, published material that we distribute, and our contacts can subscribe to one or more publications.  In our old data model, this type of relationship is accomplished with a simple mapping table:

- each contact has an ID
- each publication has an ID
- our mapping table has one or more rows for each contact ID

To accomplish this type of lookup in Salesforce, we created a ContactPublication object, which is just two lookup fields - one to a contact, and one to a publication object.  When we load in our data, each contact ends up having the appropriate publications attached to their record.

The issue we're having is that when we try to create views based on this data, we're unable to use the publication data as part of the view criteria - that is, we can't make a view that says "Select all users that are subscribed to publication A or publication B," since the publication information isn't a field in the Contact object - it's merely a lookup between the contact and the publication.

does anyone have any experience with this?  does anyone have any suggestions or best practices that they follow when trying to approach something like this (views where criteria is in related data, and not the object itself)?Start Free Trial
[+][-]06.05.2008 at 12:35AM PDT, ID: 21717038

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.20.2008 at 06:57AM PDT, ID: 22045808

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20081112-EE-VQP-44 / EE_QW_2_20070628