Data entity
CFOPCodesEntity
Holds CFOP codes used for Brazil. Each record has a name, a search name, a direction, a purpose and a delivery CFOP. It also gives fiscal document texts and indicates whether a fiscal reference is required. The key is the CFOP code.
- Entity name
CFOPCodesEntity- Public entity name
CFOPCodes- OData collection
CFOPCodes- Category
Not set- Module
General ledger- Read-only
No- Data management enabled
Yes- Configuration key
None- Keys
CFOP- Staging table
CFOPCodesStaging
Use it in Power BI and Power Platform
- OData URL
https://<environment>/data/CFOPCodes- Dataverse virtual table
mserp_cfopcodesentity. 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
CFOPTable_BR· rootDeliveryCFOP(tableCFOPTable_BR) · OuterJoin toCFOPTable_BR· read-onlyFiscalDocumentSourceText(tableFiscalDocumentSourceText_BR) · OuterJoin toCFOPTable_BR· read-onlyFiscalRefSourceText(tableFiscalDocumentSourceText_BR) · OuterJoin toCFOPTable_BR· read-only
Fields (15)
| Field and description | Type / EDT / enum | Mandatory | OData / Dataverse | References | Lineage root |
|---|---|---|---|---|---|
CFOPCFOP code. | String (5)CustVendCFOPId_BR | Yes | Yes | CFOPTable_BR.CFOPId | |
NameName of the CFOP code. | String (150)CustVendCFOPName_BR | Yes | Yes | CFOPTable_BR.Name | |
SearchNameSearch name of the CFOP code. | String (60)CustVendCFOPNameAlias_BR | No | Yes | CFOPTable_BR.CustVendCFOPNameAlias | |
LocationWhere the partner is: same state, other state or outside the country. | Enum
| No | Yes | CFOPTable_BR.CustVendLocation | |
FiscalDocumentTextIdFiscal document source text linked to the code. | StringFiscalDocumentTextID_BR | No | No (private) | FiscalDocumentSourceText_BR.TextID | CFOPTable_BR.FiscalDocumentTextID |
FiscalDocumentTextUnique identifier of the fiscal document text. | StringFiscalDocumentTextID_BR | No | Yes | FiscalDocumentSourceText_BR.TextID | |
DirectionWhether the code is for incoming or outgoing documents. | Enum
| No | Yes | CFOPTable_BR.Direction | |
PurposePurpose of the code, such as shipment, transfer or return order. | Enum
| No | Yes | CFOPTable_BR.Purpose | |
DeliveryCFOPIdDelivery CFOP code linked to this code. | Int64RefRecId | No | No (private) | CFOPTable_BR.RecId | CFOPTable_BR.DeliveryCFOPTable_BR |
DeliveryCFOPCFOP code. | String (5)CustVendCFOPId_BR | No | Yes | CFOPTable_BR.CFOPId | |
ConsiderInCIAPYes/No flag for taking the code into account in CIAP. | Enum
| No | Yes | CFOPTable_BR.ConsiderInCIAP | |
FiscalReferenceRequiredYes/No flag showing whether a fiscal reference is required. | Enum
| No | Yes | CFOPTable_BR.FiscalRefMandatory | |
FiscalDocumentSourceTextIdFiscal reference text ID linked to the code. | StringFiscalDocumentTextID_BR | No | No (private) | FiscalDocumentSourceText_BR.TextID | CFOPTable_BR.FiscalRefLegalTxtId |
FiscalDocumentSourceTextUnique identifier of the fiscal document text. | StringFiscalDocumentTextID_BR | No | Yes | FiscalDocumentSourceText_BR.TextID | |
FiscalReferenceLegalTextFiscal document source text used to print fiscal references at the POS terminal. | StringRetailFiscalRefLegalTxtId_BR | No | Yes | FiscalDocumentSourceText_BR.TextID | CFOPTable_BR.RetailFiscalRefLegalTxtId |
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.
FiscalDocumentTextId→FiscalDocumentSourceText_BR.TextID(key of FiscalDocumentSourceText_BR)Many CFOPTable_BR records → zero or one FiscalDocumentSourceText_BR record
FiscalDocumentSourceText_BR details: see FiscalDocumentSourceTextEntity, FiscalDocSourceTextReferenceProcessEntity
DeliveryCFOPId→CFOPTable_BR.RecId(key of CFOPTable_BR)Many CFOPTable_BR records → zero or one CFOPTable_BR record
CFOPTable_BR details: see ProjectParameterEntity, InventTransferLineFiscalInfoEntity, InventTransferOrderCFOPMappingEntity
FiscalDocumentSourceTextId→FiscalDocumentSourceText_BR.TextID(key of FiscalDocumentSourceText_BR)Many CFOPTable_BR records → zero or one FiscalDocumentSourceText_BR record
FiscalDocumentSourceText_BR details: see FiscalDocumentSourceTextEntity, FiscalDocSourceTextReferenceProcessEntity
FiscalReferenceLegalText→FiscalDocumentSourceText_BR.TextID(key of FiscalDocumentSourceText_BR)Many CFOPTable_BR records → zero or one FiscalDocumentSourceText_BR record
FiscalDocumentSourceText_BR details: see FiscalDocumentSourceTextEntity, FiscalDocSourceTextReferenceProcessEntity
Need help with CFOPCodesEntity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.