Data entity
FiscalDocumentTypesForCustomersEntity
Assigns fiscal document types to customers, used for Brazil. Each record uses an account code and relation, an item type and a fiscal establishment. The key combines these four values.
- Entity name
FiscalDocumentTypesForCustomersEntity- Public entity name
FiscalDocumentTypesForCustomersEntity- OData collection
FiscalDocumentTypesForCustomersEntities- Category
Not set- Module
Accounts receivable- Read-only
No- Data management enabled
Yes- Configuration key
None- Keys
AccountCode, AccountRelation, ItemType, FiscalEstablishmentId- Staging table
FiscalDocumentTypesForCustomersStaging
Use it in Power BI and Power Platform
- OData URL
https://<environment>/data/FiscalDocumentTypesForCustomersEntities- Dataverse virtual table
mserp_fiscaldocumenttypesforcustomersentity. 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
CustFiscalDocumentType_BR· rootFiscalDocumentType_BR· InnerJoin toCustFiscalDocumentType_BR· read-onlyFiscalEstablishment_BR· InnerJoin toCustFiscalDocumentType_BR· read-only
Fields (7)
| Field and description | Type / EDT / enum | Mandatory | OData / Dataverse | References | Lineage root |
|---|---|---|---|---|---|
FiscalDocumentType_BRPoints to the fiscal document type. | Int64FiscalDocumentTypeRecID_BR | Yes | No (private) | FiscalDocumentType_BR.RecId | CustFiscalDocumentType_BR.FiscalDocumentType_BR |
FiscalEstablishment_BRPoints to the fiscal establishment. | Int64FiscalEstablishmentRecId_BR | Yes | No (private) | FiscalEstablishment_BR.RecId | CustFiscalDocumentType_BR.FiscalEstablishment_BR |
AccountCodeShows whether the row applies to one customer, a customer group or all customers. | Enum
| Yes | Yes | CustFiscalDocumentType_BR.AccountCode | |
AccountRelationCustomer account or customer group that the row applies to. | String (20)InventCustVendRel | No | Yes | CustGroup.CustGroupCustTable.AccountNum | CustFiscalDocumentType_BR.AccountRelation |
ItemTypeShows whether the row applies to items or services. | Enum
| No | Yes | CustFiscalDocumentType_BR.ItemType | |
FiscalEstablishmentIdUnique ID of the fiscal establishment. It is the business key of the table. | StringFiscalEstablishmentId_BR | Yes | Yes | FiscalEstablishment_BR.FiscalEstablishmentId | |
FiscalDocumentTypeIdID of the fiscal document type, part of the key. | StringFiscalDocumentTypeId_BR | Yes | Yes | FiscalDocumentType_BR.FiscalDocumentTypeId |
Foreign keys (4)
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.
FiscalDocumentType_BR→FiscalDocumentType_BR.RecId(key of FiscalDocumentType_BR)Many CustFiscalDocumentType_BR records → exactly one FiscalDocumentType_BR record
FiscalDocumentType_BR details: see FiscalDocumentTypeEntity, VendorInvoiceHeaderEntity, FiscalDocumentTypesForFiscalEstablishmentEntity
FiscalEstablishment_BR→FiscalEstablishment_BR.RecId(key of FiscalEstablishment_BR)Exactly one CustFiscalDocumentType_BR record → exactly one FiscalEstablishment_BR record
FiscalEstablishment_BR details: see FiscalEstablishmentEntity, EFDocTechResponsibleInformationEntity, FiscalOrganizationFiscalEstablishmentEntity
AccountRelation→CustGroup.CustGroup(key of CustGroup)Relation also requires AccountCode = TableGroupAll::GroupId.
Many CustFiscalDocumentType_BR records → zero or one CustGroup record
CustGroup details: see CustCustomerGroupEntity, RetailPriceGroupApplicabilityRuleEntity, WHSCustomerGroupProductFilterEntity
AccountRelation→CustTable.AccountNum(key of CustTable)Relation also requires AccountCode = TableGroupAll::Table.
Many CustFiscalDocumentType_BR records → zero or one CustTable record
CustTable details: see CustCustomerV3Entity, CustFoundationExtendedEntity, CustFoundationEntity
Need help with FiscalDocumentTypesForCustomersEntity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.