Table
DirPartyRelationship
Party relationships
Records a relationship between two parties in the global address book. Each record names a parent party, a child party and a relationship type. It has a validity period and can be limited to a company.
- Table name
DirPartyRelationship- Module
Global address book- Table group
Main- Table type
Regular- Data per company
No- Configuration key
None- Primary index
RecId- Replacement key
TypeParentChildIdx- Key fields
RelationshipTypeId, ParentParty, ChildParty, LegalEntityDataAreaId, ValidTo, ValidFrom- Model
Directory
Fields (12)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
RelationshipTypeIdThe type of relationship between the two parties. | String (20)DirRelationshipTypeId | Yes | DirRelationshipTypeTable.RelationshipTypeId | OMTeamMemberEntityBenefitPersonalContactPersonEntityHcmCoveredBeneficiaryRelationshipEntityand 3 more |
ParentPartyThe parent party in the relationship. | Int64DirPartyRecId | No | DirPartyTable.RecId | OMTeamMemberV2EntityDirPartyRelationshipEntityOMTeamMemberEntityand 2 more |
ChildPartyThe child party in the relationship. | Int64DirPartyRecId | Yes | DirPartyTable.RecId | OMTeamMemberV2EntityDirPartyRelationshipEntityOMTeamMemberEntityand 2 more |
LegalEntityDataAreaIdCompany (data area) the relationship applies to. | String (6)DirDataAreaId | No | DirPartyRelationshipEntityHcmCoveredBeneficiaryRelationshipEntityHcmCoveredDependentRelationshipEntity | |
ValidToDate and time when the relationship expires. | UtcDateTimeExpirationDateTime | No | OMTeamMemberV2EntityDirPartyRelationshipEntityOMTeamMemberEntityand 4 more | |
ValidFromDate and time from which the relationship is effective. | UtcDateTimeEffectiveDateTime | No | OMTeamMemberV2EntityDirPartyRelationshipEntityOMTeamMemberEntityand 4 more | |
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 | |
SchemaVersionSchema version of the record: version 1 or version 2. | EnumHcmSchemaVersion (enum) | No | 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 (3)
TypeParentChildIdxReplacement keyRelationshipTypeId,ParentParty,ChildParty,LegalEntityDataAreaId,ValidTo,ValidFromUnique, alternate key.
FK_DirPartyTable_DirPartyRelationship1Not unique.
FK_DirPartyTable_DirPartyRelationshipNot unique.
Relations (3)
Each relation joins DirPartyRelationship to another table on the fields shown.
DirPartyTableChild_FK→DirPartyTableJoin on
ChildParty = DirPartyTable.RecIdMany DirPartyRelationship records → exactly one DirPartyTable record
DirPartyTableParent_FK→DirPartyTableJoin on
ParentParty = DirPartyTable.RecIdMany DirPartyRelationship records → exactly one DirPartyTable record
DirRelationshipTypeTable→DirRelationshipTypeTableJoin on
RelationshipTypeId = DirRelationshipTypeTable.RelationshipTypeIdMany DirPartyRelationship records → exactly one DirRelationshipTypeTable record
Get this data out
Tables are not exposed directly. These public entities read from DirPartyRelationship; use one of them in Power BI, Power Platform or a data management project.
OMTeamMemberV2Entity· 4 fields from this tableDirPartyRelationshipEntity· 5 fields from this tableOMTeamMemberEntity· 5 fields from this tableBenefitPersonalContactPersonEntity· 3 fields from this tableHcmCoveredBeneficiaryRelationshipEntity· 6 fields from this tableHcmCoveredDependentRelationshipEntity· 6 fields from this tableHcmPersonalContactOrganizationEntity· 1 field from this tableHcmPersonalContactPersonEntity· 3 fields from this tableVRMPersonEntity· 0 fields from this table
Need help with DirPartyRelationship in a report, an integration or a migration? Talk to Dr Dynamics.