Table

LTMAddressStateDocType

Address state document type

Links a state to the document types that are valid for it. Each row is keyed by state document type, state and country or region. The document type comes from the fiscal register table.

Table name
LTMAddressStateDocType
Module
Cross-module and platform
Table group
Main
Table type
Regular
Data per company
Yes
Configuration key
None
Primary index
LTMAddressStateIdx
Replacement key
LTMAddressStateIdx
Key fields
StateDocTypeId, StateId, CountryRegionId
Model
GlobalizationLTM

Fields (8)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
StateDocTypeIdCode of a state document type, taken from the fiscal register table.String (15)
LTMDocTypeId
YesLTMFiscalRegisterV2.DocTypeIdLTMAddressStateDocTypeEntity
StateIdCode of the state that the document type applies to.String
LogisticsAddressStateId
YesLogisticsAddressState.StateIdLTMAddressStateDocTypeEntity
CountryRegionIdCode of the country or region that the state is in.String
AddressCountryRegionId
YesLogisticsAddressCountryRegion.CountryRegionIdLTMAddressStateDocTypeEntity
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
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
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone

Indexes (1)

Relations (3)

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

  • LTMAddressState → LogisticsAddressState

    Join on StateId = LogisticsAddressState.StateId, CountryRegionId = LogisticsAddressState.CountryRegionId

    Exactly one LTMAddressStateDocType record → exactly one LogisticsAddressState record

  • LTMFiscalRegister → LTMFiscalRegisterV2

    Join on StateDocTypeId = LTMFiscalRegisterV2.DocTypeId

    Exactly one LTMAddressStateDocType record → zero or one LTMFiscalRegisterV2 record

  • LogisticsAddressCountryRegion → LogisticsAddressCountryRegion

    Join on CountryRegionId = LogisticsAddressCountryRegion.CountryRegionId

    Many LTMAddressStateDocType records → zero or one LogisticsAddressCountryRegion record

Get this data out

Tables are not exposed directly. These public entities read from LTMAddressStateDocType; use one of them in Power BI, Power Platform or a data management project.

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

Email sales@drdynamics.co.uk