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 · root
  • DeliveryCFOP (table CFOPTable_BR) · OuterJoin to CFOPTable_BR · read-only
  • FiscalDocumentSourceText (table FiscalDocumentSourceText_BR) · OuterJoin to CFOPTable_BR · read-only
  • FiscalRefSourceText (table FiscalDocumentSourceText_BR) · OuterJoin to CFOPTable_BR · read-only

Fields (15)

Field and descriptionType / EDT / enumMandatoryOData / DataverseReferencesLineage root
CFOPCFOP code.String (5)
CustVendCFOPId_BR
YesYesCFOPTable_BR.CFOPId
NameName of the CFOP code.String (150)
CustVendCFOPName_BR
YesYesCFOPTable_BR.Name
SearchNameSearch name of the CFOP code.String (60)
CustVendCFOPNameAlias_BR
NoYesCFOPTable_BR.CustVendCFOPNameAlias
LocationWhere the partner is: same state, other state or outside the country.Enum
CustVendLocation_BR
  • SameState 0
  • OtherState 1
  • OutsideCountry 2
NoYesCFOPTable_BR.CustVendLocation
FiscalDocumentTextIdFiscal document source text linked to the code.String
FiscalDocumentTextID_BR
NoNo (private)FiscalDocumentSourceText_BR.TextIDCFOPTable_BR.FiscalDocumentTextID
FiscalDocumentTextUnique identifier of the fiscal document text.String
FiscalDocumentTextID_BR
NoYesFiscalDocumentSourceText_BR.TextID
DirectionWhether the code is for incoming or outgoing documents.Enum
FiscalDocDirection_BR
  • Incoming 1
  • Outgoing 2
NoYesCFOPTable_BR.Direction
PurposePurpose of the code, such as shipment, transfer or return order.Enum
CFOPPurpose_BR
  • None 0
  • Shipment 1
  • FiscalEstablishmentTransfer 2
  • Return 3
  • ReturnOrder 4
NoYesCFOPTable_BR.Purpose
DeliveryCFOPIdDelivery CFOP code linked to this code.Int64
RefRecId
NoNo (private)CFOPTable_BR.RecIdCFOPTable_BR.DeliveryCFOPTable_BR
DeliveryCFOPCFOP code.String (5)
CustVendCFOPId_BR
NoYesCFOPTable_BR.CFOPId
ConsiderInCIAPYes/No flag for taking the code into account in CIAP.Enum
NoYes

Platform enum: values not in the metadata extract.

NoYesCFOPTable_BR.ConsiderInCIAP
FiscalReferenceRequiredYes/No flag showing whether a fiscal reference is required.Enum
NoYes

Platform enum: values not in the metadata extract.

NoYesCFOPTable_BR.FiscalRefMandatory
FiscalDocumentSourceTextIdFiscal reference text ID linked to the code.String
FiscalDocumentTextID_BR
NoNo (private)FiscalDocumentSourceText_BR.TextIDCFOPTable_BR.FiscalRefLegalTxtId
FiscalDocumentSourceTextUnique identifier of the fiscal document text.String
FiscalDocumentTextID_BR
NoYesFiscalDocumentSourceText_BR.TextID
FiscalReferenceLegalTextFiscal document source text used to print fiscal references at the POS terminal.String
RetailFiscalRefLegalTxtId_BR
NoYesFiscalDocumentSourceText_BR.TextIDCFOPTable_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.

Need help with CFOPCodesEntity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.

Email sales@drdynamics.co.uk