Data entity

SalesTableBRBiEntity

Entity for BI and analytics that holds extra Brazil fields for sales order headers. It includes CFPS code, operation type, presence type, service code, final user, return purpose and details of a third-party sales digital platform.

Entity name
SalesTableBRBiEntity
Public entity name
SalesTableBRBiEntity
OData collection
SalesTableBRBiEntities
Category
Document
Module
Other (no module in the metadata)
Read-only
No
Data management enabled
No
Configuration key
LogisticsBasic
Keys
SourceKey
Staging table
None

Use it in Power BI and Power Platform

OData URL
https://<environment>/data/SalesTableBRBiEntities
Dataverse virtual table
mserp_salestablebrbientity. Listed in the virtual-table catalogue. An administrator must make the virtual table visible before you can use it.
Data management
Not enabled for import and export projects.

Data sources

  • SalesTable_BR · root

Fields (21)

Field and descriptionType / EDT / enumMandatoryOData / DataverseReferencesLineage root
CFPSId_BRCFPS service code for the order.String (4)
CFPSId_BR
NoYesSalesTable_BR.CFPSId_BR
CustFinalUser_BRYes/No flag showing whether the customer is the final user.Enum
CustVendFinalUser_BR
NoYes

Platform enum: values not in the metadata extract.

NoYesSalesTable_BR.CustFinalUser_BR
FineCode_BRFine code applied to the order.String
CustFineCode_BR
NoYesCustFineSetup_BR.FineCodeSalesTable_BR.FineCode_BR
FiscalDocumentType_BRFiscal document type for the order.Int64
RefRecId
NoYesFiscalDocumentType_BR.RecIdSalesTable_BR.FiscalDocumentType_BR
InterestCode_BRInterest code applied to the order.String
CustInterestCode_BR
NoYesCustInterestSetup_BR.InterestCodeSalesTable_BR.InterestCode_BR
InvoiceRefRecID_BRCustomer invoice referenced by the order.Int64
RefRecId
NoYesCustInvoiceJour.RecIdSalesTable_BR.InvoiceRefRecID_BR
SalesPurchOperationType_BROperation type of the order.Int64
SalesPurchOperationTypeRecId_BR
NoYesSalesPurchOperationType_BR.RecIdSalesTable_BR.SalesPurchOperationType_BR
SalesTableSales order this record extends.Int64
RefRecId
NoYesSalesTable.RecIdSalesTable_BR.SalesTable
ServiceCodeOnDlvAddress_BRYes/No flag for taking the service code from the delivery address.Enum
TaxServiceCodeOnDlvAddress_BR
NoYes

Platform enum: values not in the metadata extract.

NoYesSalesTable_BR.ServiceCodeOnDlvAddress_BR
TaxServiceCode_BRService code for the order.String
TaxServiceCodeId_BR
NoYesSalesTable_BR.TaxServiceCode_BR
PresenceTypeHow the buyer was present in the sale, such as in person, internet or telesales.Enum
EFDocPresenceType_BR
  • DoesNotApply 0
  • InPerson 1
  • Internet 2
  • Telesales 3
  • InPersonOut 5
  • Others 9
NoYesSalesTable_BR.PresenceType
ThirdPartySalesDigitalPlatformYes/No flag showing whether the sale went through a third-party digital platform or marketplace.Enum
ThirdPartySalesDigitalPlatform_BR
NoYes

Platform enum: values not in the metadata extract.

NoYesSalesTable_BR.ThirdPartySalesDigitalPlatform
ThirdPartySalesDigitalPlatformCNPJCNPJ tax number of the digital platform provider.String (20)
ThirdPartySalesDigitalPlatformCNPJ_BR
NoYesSalesTable_BR.ThirdPartySalesDigitalPlatformCNPJ
SourceKeyA unique number that the system gives to every record. Other tables often use it to point to this record.Int64
RecId
NoYesSalesTable_BR.RecId
IsServiceLocationForeign_BRYes/No flag showing whether the service location is abroad.Enum
ServiceLocationForeign_BR
NoYes

Platform enum: values not in the metadata extract.

NoYesSalesTable_BR.IsServiceLocationForeign_BR
ServiceLocationDomestic_BRCity of the service location when it is in Brazil.Int64
RefRecId
NoYesLogisticsAddressCity.RecIdSalesTable_BR.ServiceLocationDomestic_BR
ServiceLocationNonDomestic_BRCountry or region of the service location when it is abroad.String
LogisticsAddressCountryRegionId
NoYesLogisticsAddressCountryRegion.CountryRegionIdSalesTable_BR.ServiceLocationNonDomestic_BR
MissingNIFReasonType_BRReason why no foreigner ID (NIF) was given.Enum
MissingNIFReasonType_BR
  • NotInformed 1
  • Exemption 2
  • NotRequired 3
NoYesSalesTable_BR.MissingNIFReasonType_BR
TotalReturn_BRYes/No flag for a full refusal of the goods.Enum
TotalReturn_BR
NoYes

Platform enum: values not in the metadata extract.

NoYesSalesTable_BR.TotalReturn_BR
PurposeOfReturn_BRPurpose of the return: refusal or return.Enum
PurposeOfReturn_BR
  • CreditNote 1
  • Return 0
NoYesSalesTable_BR.PurposeOfReturn_BR
GenerateIncomingFiscalDocument_BRYes/No flag for generating an incoming fiscal document.Enum
GenerateIncomingFiscalDocument_BR
NoYes

Platform enum: values not in the metadata extract.

NoYesSalesTable_BR.GenerateIncomingFiscalDocument_BR

Foreign keys (8)

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 SalesTableBRBiEntity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.

Email sales@drdynamics.co.uk