Solved

CRM - Lookup for different fields of the entity

Posted on 2012-03-20
6
609 Views
Last Modified: 2013-11-25
I would like to lookup different fields for an entity, how would I do that? How many relationships do I define?

e.g.

Plan Entity
PlanName, PlanAccountID, PlanDescription
I would like PlanName, PlanAccountID map into name, AccountID for the Plan Registration Entity when I do a lookup in PlanRegistration Entity
0
Comment
Question by:tommym121
  • 2
  • 2
6 Comments
 
LVL 29

Expert Comment

by:feridun
ID: 37742128
When you create a relationship between two entities, CRM adds a lookup field on the child entity of the relationship (e.g. 1:n relationship between Account and Project, Project is the child entity). The lookup field references the parent entity using the primary field which is generally a name field. You can't choose which field is used.

If you want to have multiple lookups to a parent record then create multiple relationships.

But I'm not sure I fully understood your question, perhaps you could elaborate please?
0
 

Author Comment

by:tommym121
ID: 37742191
I am doing a manual N:N relationship.  e.g.  Client have multiple plans, Clients can share same plan.  I try to have a registration Entity to do the N:N relationship.  I would like to have some information from Client or Plan to show up in registration entity.

Doest that make sense?

In a relationship, you can also define the  mapping does that mapping help me to achieve what I have if I define one relationship but multiple maps within the mapping>
0
 
LVL 29

Accepted Solution

by:
feridun earned 500 total points
ID: 37742649
I'm assuming that the registration entity is the intersect entity.
When you add an registration record to a client from within a client record, then you can use mappings to copy fields from the client record to the registration record. The same applies to Plans. Make sure that you have fields of the same type in clients, plans and registrations and then create mappings in the appropriate relationship.
You can have multiple mappings but not more than one onto the same field.

In views for registrations you can show fields from the parent entities. If you are only concerned with views you may not need to copy fields across.
0
 

Author Comment

by:tommym121
ID: 37743047
"mappings to copy fields "  how to you do that?
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Deploying a Microsoft Access application in a Citrix environment is not difficult but takes a few steps. However, Citrix system people are often of little help, as they typically know next to nothing about Access. The script provided here will take …
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
The viewer will learn how to simulate a series of coin tosses with the rand() function and learn how to make these “tosses” depend on a predetermined probability. Flipping Coins in Excel: Enter =RAND() into cell A2: Recalculate the random variable…
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now