Table
DirOrgPersonRelations
Person relations
Links contact persons to other records, such as leads, opportunities and quotation competitor groups. The key combines the referenced table ID, the referenced record ID and the contact ID. It also points to a party relationship.
- Table name
DirOrgPersonRelations- Module
Global address book- Table group
Main- Table type
Regular- Data per company
Yes- Configuration key
None- Primary index
RecId- Replacement key
EntityContactIdx- Key fields
EntityRefTableId, EntityRefRecId, ContactPersonId- Model
Foundation
Fields (10)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
EntityRefTableIdID of the table that holds the linked record. | IntegerRefTableId | Yes | None | |
EntityRefRecIdSystem record ID of the record the contact is linked to, for example a lead. | Int64RefRecId | Yes | None | |
ContactPersonIdID of the contact person. It points to ContactPerson. | String (20)ContactPersonId | Yes | ContactPerson.ContactPersonId | None |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field. | Int64RecId | No | None | |
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field. | IntegerRecVersion | No | None | |
RelationsRefRecIdSystem record ID of the party relationship. It points to DirPartyRelationship. | Int64RefRecId | Yes | DirPartyRelationship.RecId | None |
SysRowVersionA system row version number that is used for change tracking. System field. | Int64SysRowVersion | No | None | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None |
Indexes (2)
RelationsRefRecIdxNot unique.
EntityContactIdxReplacement keyEntityRefTableId,EntityRefRecId,ContactPersonIdUnique, alternate key.
Relations (5)
Each relation joins DirOrgPersonRelations to another table on the fields shown.
ContactPerson→ContactPersonJoin on
ContactPersonId = ContactPerson.ContactPersonIdMany DirOrgPersonRelations records → exactly one ContactPerson record
DirPartyRelationship→DirPartyRelationshipJoin on
RelationsRefRecId = DirPartyRelationship.RecIdMany DirOrgPersonRelations records → exactly one DirPartyRelationship record
smmLeadTable→smmLeadTableJoin on
EntityRefTableId = smmLeadTable.TableId,EntityRefRecId = smmLeadTable.RecIdMany DirOrgPersonRelations records → zero or one smmLeadTable record
smmOpportunityTable→smmOpportunityTableJoin on
EntityRefTableId = smmOpportunityTable.TableId,EntityRefRecId = smmOpportunityTable.RecIdMany DirOrgPersonRelations records → zero or one smmOpportunityTable record
smmQuotationCompetitorGroup→smmQuotationCompetitorGroupJoin on
EntityRefTableId = smmQuotationCompetitorGroup.TableId,EntityRefRecId = smmQuotationCompetitorGroup.RecIdMany DirOrgPersonRelations records → zero or one smmQuotationCompetitorGroup record
Get this data out
No public entity reads from DirOrgPersonRelations. Its data is only reachable through the application, a custom entity or a database export.
Need help with DirOrgPersonRelations in a report, an integration or a migration? Talk to Dr Dynamics.