Table
TaxServiceCode_BR
Service code
Lists service codes used for Brazil. A code can be set for a country, state and city, and can have a parent service code. It links to a service type and to an income classification.
- Table name
TaxServiceCode_BR- Module
Tax- Table group
Group- Table type
Regular- Data per company
Yes- Configuration key
None- Primary index
RecId- Replacement key
ServiceCodeIdx- Key fields
ParentServiceCode, CountryId, StateId, City, ServiceCodeId- Model
Foundation
Fields (16)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
ParentServiceCodeService code above this one, so codes can form a hierarchy. | StringTaxServiceCodeId_BR | No | None | |
CountryIdCountry or region where the service code applies. | StringLogisticsAddressCountryRegionId | No | LogisticsAddressCountryRegion.CountryRegionId | TaxServiceCodeByLocationEntity |
StateIdState where the service code applies, within the given country or region. | StringLogisticsAddressStateId | No | LogisticsAddressState.StateId | TaxServiceCodeByLocationEntity |
CityName of the city where the service code applies. | String (60)LogisticsAddressCityName | No | TaxServiceCodeByLocationEntity | |
ServiceCodeIdIdentifier of the service code. | StringTaxServiceCodeId_BR | Yes | TaxServiceCodeByLocationEntityTaxServiceCodeByLocationEntityTaxServiceCodeEntity | |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
DescriptionShort text describing the service code. | String (60)Description | No | TaxServiceCodeByLocationEntity | |
IncomeCodePoints to the income classification linked to this service code. | Int64RefRecId | No | IncomeClassification_BR.RecId | TaxServiceCodeEntity |
ModifiedDateTimeThe date and time when the record was last changed. System field. | UtcDateTimeModifiedDateTime | No | None | |
NameName of the service code. | String (60)Name | Yes | TaxServiceCodeByLocationEntityTaxServiceCodeEntity | |
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 | |
ServiceTypePoints to the service type assigned to this code. | Int64RefRecId | No | TaxServiceType_BR.RecId | 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 (1)
ServiceCodeIdxReplacement keyParentServiceCode,CountryId,StateId,City,ServiceCodeIdUnique, alternate key.
Relations (6)
Each relation joins TaxServiceCode_BR to another table on the fields shown.
LogisticsAddressCityName→LogisticsAddressCityJoin on
CountryId = LogisticsAddressCity.CountryRegionId,StateId = LogisticsAddressCity.StateId,City = LogisticsAddressCity.NameMany TaxServiceCode_BR records → zero or one LogisticsAddressCity record
LogisticsAddressCountryRegion→LogisticsAddressCountryRegionJoin on
CountryId = LogisticsAddressCountryRegion.CountryRegionIdMany TaxServiceCode_BR records → zero or one LogisticsAddressCountryRegion record
LogisticsAddressStateId→LogisticsAddressStateJoin on
CountryId = LogisticsAddressState.CountryRegionId,StateId = LogisticsAddressState.StateIdMany TaxServiceCode_BR records → zero or one LogisticsAddressState record
ParentRelation→TaxServiceCode_BRJoin on
ParentServiceCode = TaxServiceCode_BR.ServiceCodeIdMany TaxServiceCode_BR records → zero or one TaxServiceCode_BR record
TaxServiceType_BR→TaxServiceType_BRJoin on
ServiceType = TaxServiceType_BR.RecIdMany TaxServiceCode_BR records → exactly one TaxServiceType_BR record
IncomeClassification_BR→IncomeClassification_BRJoin on
IncomeCode = IncomeClassification_BR.RecIdMany TaxServiceCode_BR records → exactly one IncomeClassification_BR record
Get this data out
Tables are not exposed directly. These public entities read from TaxServiceCode_BR; use one of them in Power BI, Power Platform or a data management project.
TaxServiceCodeByLocationEntity· 7 fields from this tableTaxServiceCodeEntity· 3 fields from this table
Need help with TaxServiceCode_BR in a report, an integration or a migration? Talk to Dr Dynamics.