Data entity

DirPartyRelationshipEntity

Holds relationships between two parties in the global address book. Each row has a relationship type, a parent party and a child party, with effective and expiration dates. The key also includes the legal entity data area.

Entity name
DirPartyRelationshipEntity
Public entity name
PartyRelationship
OData collection
PartyRelationships
Category
Not set
Module
GAB
Read-only
No
Data management enabled
Yes
Configuration key
None
Keys
RelationshipType, ParentPartyId, ChildPartyId, LegalEntityDataArea, ValidTo, ValidFrom
Staging table
DirPartyRelationshipStaging

Use it in Power BI and Power Platform

OData URL
https://<environment>/data/PartyRelationships
Dataverse virtual table
mserp_dirpartyrelationshipentity. Listed in the virtual-table catalogue. An administrator must make the virtual table visible before you can use it.
Data management
Enabled: you can use it in import and export projects.

Data sources

  • DirPartyRelationship · root
  • DirRelationshipTypeTable · InnerJoin to DirPartyRelationship
  • DirPartyTable · InnerJoin to DirPartyRelationship · read-only
  • DirOrganizationBase · Derived to DirPartyTable
  • OMInternalOrganization · Derived to DirOrganizationBase
  • OMOperatingUnit · Derived to OMInternalOrganization
  • OMTeam · Derived to OMInternalOrganization
  • CompanyInfo · Derived to OMInternalOrganization
  • DirOrganization · Derived to DirOrganizationBase
  • DirPerson · Derived to DirPartyTable
  • DirPartyTableParent (table DirPartyTable) · OuterJoin to DirPartyRelationship · read-only
  • DirOrganizationBase1 (table DirOrganizationBase) · Derived to DirPartyTableParent
  • DirOrganization1 (table DirOrganization) · Derived to DirOrganizationBase1
  • OMInternalOrganization1 (table OMInternalOrganization) · Derived to DirOrganizationBase1
  • CompanyInfo1 (table CompanyInfo) · Derived to OMInternalOrganization1
  • OMOperatingUnit1 (table OMOperatingUnit) · Derived to OMInternalOrganization1
  • OMTeam1 (table OMTeam) · Derived to OMInternalOrganization1
  • DirPerson1 (table DirPerson) · Derived to DirPartyTableParent

Fields (10)

Field and descriptionType / EDT / enumMandatoryOData / DataverseReferencesLineage root
LegalEntityDataAreaCompany (data area) the relationship applies to.String (6)
DirDataAreaId
NoYesDirPartyRelationship.LegalEntityDataAreaId
RelationshipTypeUnique ID of the relationship type.String (20)
DirRelationshipTypeId
YesYesDirRelationshipTypeTable.RelationshipTypeId
ValidFromDate and time from which the relationship is effective.UtcDateTime
EffectiveDateTime
NoYesDirPartyRelationship.ValidFrom
ValidToDate and time when the relationship expires.UtcDateTime
ExpirationDateTime
NoYesDirPartyRelationship.ValidTo
ChildPartyIdUnique ID of the party. It is the key of the table.String (40)
DirPartyNumber
YesYesDirPartyTable.PartyNumber
ChildPartyThe child party in the relationship.Int64
DirPartyRecId
YesNo (private)DirPartyTable.RecIdDirPartyRelationship.ChildParty
ParentPartyThe parent party in the relationship.Int64
DirPartyRecId
NoNo (private)DirPartyTable.RecIdDirPartyRelationship.ParentParty
NullableParentPartyIdUnique ID of the party. It is the key of the table.String (40)
DirPartyNumber
NoNo (private)DirPartyTable.PartyNumber
ParentPartyIdThe party number of the parent party in the relationship.String (40)
DirPartyNumber
NoYescomputed
SystemTypeSystem relationship type, such as contact, subsidiary, spouse or partner.Enum
DirSystemRelationshipType
  • None 0
  • ContactPerson 1
  • Subsidiary 2
  • BoardMember 3
  • DomesticPartner 4
  • Membership 9
  • ParentChild 5
  • Partner 6
  • Sibling 7
  • Spouse 8
  • Acquired 10
  • ParentSubsidiary 11
  • UnitSubunit 12
  • Merged 13
  • LEParentSubsidiary 14
  • OUParentChild 15
  • OrganizationManager 17
  • TeamMember 18
  • TeamLeader 19
  • TeamAdministrator 20
  • FamilyContact 21
  • OtherContact 22
  • ExSpouse 23
  • BeneficiaryOrg 24
  • BeneficiaryEstate 25
  • BeneficiaryTrust 26
  • Parent 27
  • Child 28
  • Customer 29
  • Vendor 30
  • Prospect 31
  • Competitor 32
  • Worker 33
  • Applicant 34
  • DisallowedVendor 35
  • ProspectiveVendInLE 36
  • ContactPersonInLE 37
  • PersonalContactInLE 38
  • PartyInLE 39
  • ProspectiveContInLE 40
  • Agent 41
  • TaxRepresentative 42
  • ProspectiveVendorContact 16
  • GlobalVendorContact
NoYesDirRelationshipTypeTable.SystemType

Foreign keys (2)

Each field below points to the key of another table. Join on it in Power BI, or follow the link to an entity that exposes that table.

Need help with DirPartyRelationshipEntity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.

Email sales@drdynamics.co.uk