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 descriptionType / EDT / enumMandatoryReferencesIn public entities
ParentServiceCodeService code above this one, so codes can form a hierarchy.String
TaxServiceCodeId_BR
NoNone
CountryIdCountry or region where the service code applies.String
LogisticsAddressCountryRegionId
NoLogisticsAddressCountryRegion.CountryRegionIdTaxServiceCodeByLocationEntity
StateIdState where the service code applies, within the given country or region.String
LogisticsAddressStateId
NoLogisticsAddressState.StateIdTaxServiceCodeByLocationEntity
CityName of the city where the service code applies.String (60)
LogisticsAddressCityName
NoTaxServiceCodeByLocationEntity
ServiceCodeIdIdentifier of the service code.String
TaxServiceCodeId_BR
YesTaxServiceCodeByLocationEntityTaxServiceCodeByLocationEntityTaxServiceCodeEntity
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
DescriptionShort text describing the service code.String (60)
Description
NoTaxServiceCodeByLocationEntity
IncomeCodePoints to the income classification linked to this service code.Int64
RefRecId
NoIncomeClassification_BR.RecIdTaxServiceCodeEntity
ModifiedDateTimeThe date and time when the record was last changed. System field.UtcDateTime
ModifiedDateTime
NoNone
NameName of the service code.String (60)
Name
YesTaxServiceCodeByLocationEntityTaxServiceCodeEntity
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
ServiceTypePoints to the service type assigned to this code.Int64
RefRecId
NoTaxServiceType_BR.RecIdNone
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 (1)

Relations (6)

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

  • LogisticsAddressCityName → LogisticsAddressCity

    Join on CountryId = LogisticsAddressCity.CountryRegionId, StateId = LogisticsAddressCity.StateId, City = LogisticsAddressCity.Name

    Many TaxServiceCode_BR records → zero or one LogisticsAddressCity record

  • LogisticsAddressCountryRegion → LogisticsAddressCountryRegion

    Join on CountryId = LogisticsAddressCountryRegion.CountryRegionId

    Many TaxServiceCode_BR records → zero or one LogisticsAddressCountryRegion record

  • LogisticsAddressStateId → LogisticsAddressState

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

    Many TaxServiceCode_BR records → zero or one LogisticsAddressState record

  • ParentRelation → TaxServiceCode_BR

    Join on ParentServiceCode = TaxServiceCode_BR.ServiceCodeId

    Many TaxServiceCode_BR records → zero or one TaxServiceCode_BR record

  • TaxServiceType_BR → TaxServiceType_BR

    Join on ServiceType = TaxServiceType_BR.RecId

    Many TaxServiceCode_BR records → exactly one TaxServiceType_BR record

  • IncomeClassification_BR → IncomeClassification_BR

    Join on IncomeCode = IncomeClassification_BR.RecId

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

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

Email sales@drdynamics.co.uk