Relationship types and considerations
Relationships enable the association of data with other objects. Before we start to design and build Salesforce relationships, let's look at generic relationship types and see how we could use them to associate the entities that we discovered earlier, in Figure 1.1 – Scenario data model entities:
- One-to-one relationship: An example of this type of relationship is where there is a list of prospects and a list of salespeople, but only one salesperson manages the prospect record and hence the prospect record is owned by only one salesperson.
- One-to-many relationship: An example of this type of relationship is where there is a list of prospects and a number of meetings to be set up with the prospects. This association allows there to be one prospect, but many meetings could be attended by the prospect.
- Many-to-many relationship: An example of this type of relationship is where there is a list of locations and a list of regions...