Data entity
TrvAddressZipcodeEntity
ZIP or postal codes used in expense management, keyed by the code. Each row has city, county, state, district, street, country or region, time zone and a from and to range with an all, even or odd setting. It is based on the shared ZIP and postal code table.
- Entity name
TrvAddressZipcodeEntity- Public entity name
ExpenseZipcode- OData collection
ExpenseZipcodes- Category
Not set- Module
Travel and expense- Read-only
No- Data management enabled
Yes- Configuration key
Trv- Keys
ZipCode- Staging table
TrvAddressZipcodeStaging
Use it in Power BI and Power Platform
- OData URL
https://<environment>/data/ExpenseZipcodes- Dataverse virtual table
mserp_trvaddresszipcodeentity. 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
LogisticsAddressZipCode· root
Fields (15)
| Field and description | Type / EDT / enum | Mandatory | OData / Dataverse | References | Lineage root |
|---|---|---|---|---|---|
CityName of the city for the postal code. | String (60)LogisticsAddressCityName | No | Yes | LogisticsAddressZipCode.City | |
CityAliasShort search name for the city. | String (30)LogisticsAddressCityAlias | No | Yes | LogisticsAddressZipCode.CityAlias | |
CityRecIdPoints to the city record. | Int64LogisticsAddressCityRecId | No | Yes | LogisticsAddressCity.RecId | LogisticsAddressZipCode.CityRecId |
CountryRegionIdCountry or region of the postal code. | StringLogisticsAddressCountryRegionId | Yes | Yes | LogisticsAddressCountryRegion.CountryRegionId | LogisticsAddressZipCode.CountryRegionId |
CountyCounty of the postal code. | String (30)LogisticsAddressCountyId | No | Yes | LogisticsAddressCounty.CountyId | LogisticsAddressZipCode.County |
DistrictPoints to the district record. | Int64LogisticsAddressDistrictRecId | No | Yes | LogisticsAddressDistrict.RecId | LogisticsAddressZipCode.District |
DistrictNameName of the district. | String (60)LogisticsAddressDistrictName | No | Yes | LogisticsAddressZipCode.DistrictName | |
EvenOddTells whether the code covers all, even or odd street numbers. | Enum
| No | Yes | LogisticsAddressZipCode.EvenOdd | |
FromNumFirst street number in the range. | IntegerStreetNum | No | Yes | LogisticsAddressZipCode.FromNum | |
StateState of the postal code. | StringLogisticsAddressStateId | No | Yes | LogisticsAddressState.StateId | LogisticsAddressZipCode.State |
StreetNameName of the street the code applies to. | String (250)LogisticsZipCodeStreet | No | Yes | LogisticsAddressZipCode.StreetName | |
TimeZoneTime zone of the postal code area. | Enum
| No | Yes | LogisticsAddressZipCode.TimeZone | |
ToNumLast street number in the range. | IntegerStreetNum | No | Yes | LogisticsAddressZipCode.ToNum | |
ZipCodeThe ZIP or postal code. | StringLogisticsAddressZipCodeId | Yes | Yes | LogisticsAddressZipCode.ZipCode | |
ZipcodeRecIdA unique number that the system gives to every record. Other tables often use it to point to this record. | Int64RecId | No | Yes | LogisticsAddressZipCode.RecId |
Foreign keys (5)
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.
CityRecId→LogisticsAddressCity.RecId(key of LogisticsAddressCity)Many LogisticsAddressZipCode records → zero or one LogisticsAddressCity record
LogisticsAddressCity details: see TrvExpMobileAddressCityEntity, AccountantEntity, LogisticsAddressCityEntity
CountryRegionId→LogisticsAddressCountryRegion.CountryRegionId(key of LogisticsAddressCountryRegion)Many LogisticsAddressZipCode records → exactly one LogisticsAddressCountryRegion record
LogisticsAddressCountryRegion details: see ElectronicTaxICPDeclarationEntity, LogisticsAddressCountryRegionEntity, PaymentCalendarEntity
County→LogisticsAddressCounty.CountyId(key of LogisticsAddressCounty)Join on all of:
County=LogisticsAddressCounty.CountyId,CountryRegionId=LogisticsAddressCounty.CountryRegionId,State=LogisticsAddressCounty.StateIdMany LogisticsAddressZipCode records → zero or one LogisticsAddressCounty record
LogisticsAddressCounty details: see LogisticsAddressCountyEntity, VRMLogisticsAddressCountyEntity
District→LogisticsAddressDistrict.RecId(key of LogisticsAddressDistrict)Many LogisticsAddressZipCode records → zero or one LogisticsAddressDistrict record
LogisticsAddressDistrict details: see LogisticsAddressDistrictEntity, LogisticsAddressDistrictV2Entity, AccountantEntity
State→LogisticsAddressState.StateId(key of LogisticsAddressState)Join on all of:
State=LogisticsAddressState.StateId,CountryRegionId=LogisticsAddressState.CountryRegionIdMany LogisticsAddressZipCode records → zero or one LogisticsAddressState record
LogisticsAddressState details: see LogisticsAddressStateEntity, PayrollEmployerTaxRegionEntity, StateHolidayEntity
Need help with TrvAddressZipcodeEntity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.