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 descriptionType / EDT / enumMandatoryReferencesIn public entities
RelationshipTypeIdThe type of relationship between the two parties.String (20)
DirRelationshipTypeId
YesDirRelationshipTypeTable.RelationshipTypeIdOMTeamMemberEntityBenefitPersonalContactPersonEntityHcmCoveredBeneficiaryRelationshipEntityand 3 more
ParentPartyThe parent party in the relationship.Int64
DirPartyRecId
NoDirPartyTable.RecIdOMTeamMemberV2EntityDirPartyRelationshipEntityOMTeamMemberEntityand 2 more
ChildPartyThe child party in the relationship.Int64
DirPartyRecId
YesDirPartyTable.RecIdOMTeamMemberV2EntityDirPartyRelationshipEntityOMTeamMemberEntityand 2 more
LegalEntityDataAreaIdCompany (data area) the relationship applies to.String (6)
DirDataAreaId
NoDirPartyRelationshipEntityHcmCoveredBeneficiaryRelationshipEntityHcmCoveredDependentRelationshipEntity
ValidToDate and time when the relationship expires.UtcDateTime
ExpirationDateTime
NoOMTeamMemberV2EntityDirPartyRelationshipEntityOMTeamMemberEntityand 4 more
ValidFromDate and time from which the relationship is effective.UtcDateTime
EffectiveDateTime
NoOMTeamMemberV2EntityDirPartyRelationshipEntityOMTeamMemberEntityand 4 more
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field.Int64
RecId
NoNone
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field.Integer
RecVersion
NoNone
SchemaVersionSchema version of the record: version 1 or version 2.Enum
HcmSchemaVersion (enum)
NoNone
SysRowVersionA system row version number that is used for change tracking. System field.Int64
SysRowVersion
NoNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone

Indexes (3)

Relations (3)

Each relation joins DirPartyRelationship to another table on the fields shown.

  • DirPartyTableChild_FK → DirPartyTable

    Join on ChildParty = DirPartyTable.RecId

    Many DirPartyRelationship records → exactly one DirPartyTable record

  • DirPartyTableParent_FK → DirPartyTable

    Join on ParentParty = DirPartyTable.RecId

    Many DirPartyRelationship records → exactly one DirPartyTable record

  • DirRelationshipTypeTable → DirRelationshipTypeTable

    Join on RelationshipTypeId = DirRelationshipTypeTable.RelationshipTypeId

    Many 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.

Need help with DirPartyRelationship in a report, an integration or a migration? Talk to Dr Dynamics.

Email sales@drdynamics.co.uk