【Salesforce】Object relationship

Object relationships are a special field type that connects two objects together.


Lookup Relationship:  查询关系

A lookup relationship essentially links two objects together so that you can “look up” one object from the related items on another object.

Lookup relationships can be one-to-one or one-to-many. The Account to Contact relationship is one-to-many because a single account can have many related contacts. 

查找关系中的对象通常作为独立的对象工作,并且在用户界面中有自己的选项卡。


Master-Detail Relationships:主从复合结构关系

 In this type of relationship, one object is the master and another is the detail. The master object controls certain behaviors of the detail object, like who can view the detail’s data. (主对象控制detail对象的某些行为,比如谁可以查看细节的数据。)

在主从复合结构关系中,detail对象不能独立工作。它高度依赖于主人。事实上,如果删除了主对象上的记录,那么所有相关的详细记录也会被删除。当您创建主从复合结构关系时,您总是在detail对象上创建关系字段。


Hierarchical Relationship:层次结构关系

Hierarchical relationships are a special type of lookup relationship. The main difference between the two is that hierarchical relationships are only available on the User object. You can use them for things like creating management chains between users.

层次关系是一种特殊类型的查找关系。两者之间的主要区别在于,层次关系仅在用户对象上可用。您可以使用它们来创建用户之间的管理链。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值