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 description | Type / EDT / enum | Mandatory | OData / Dataverse | References | Lineage root |
|---|---|---|---|---|---|
CFPSId_BRCFPS service code for the order. | String (4)CFPSId_BR | No | Yes | SalesTable_BR.CFPSId_BR | |
CustFinalUser_BRYes/No flag showing whether the customer is the final user. | EnumCustVendFinalUser_BR
| No | Yes | SalesTable_BR.CustFinalUser_BR | |
FineCode_BRFine code applied to the order. | StringCustFineCode_BR | No | Yes | CustFineSetup_BR.FineCode | SalesTable_BR.FineCode_BR |
FiscalDocumentType_BRFiscal document type for the order. | Int64RefRecId | No | Yes | FiscalDocumentType_BR.RecId | SalesTable_BR.FiscalDocumentType_BR |
InterestCode_BRInterest code applied to the order. | StringCustInterestCode_BR | No | Yes | CustInterestSetup_BR.InterestCode | SalesTable_BR.InterestCode_BR |
InvoiceRefRecID_BRCustomer invoice referenced by the order. | Int64RefRecId | No | Yes | CustInvoiceJour.RecId | SalesTable_BR.InvoiceRefRecID_BR |
SalesPurchOperationType_BROperation type of the order. | Int64SalesPurchOperationTypeRecId_BR | No | Yes | SalesPurchOperationType_BR.RecId | SalesTable_BR.SalesPurchOperationType_BR |
SalesTableSales order this record extends. | Int64RefRecId | No | Yes | SalesTable.RecId | SalesTable_BR.SalesTable |
ServiceCodeOnDlvAddress_BRYes/No flag for taking the service code from the delivery address. | EnumTaxServiceCodeOnDlvAddress_BR
| No | Yes | SalesTable_BR.ServiceCodeOnDlvAddress_BR | |
TaxServiceCode_BRService code for the order. | StringTaxServiceCodeId_BR | No | Yes | SalesTable_BR.TaxServiceCode_BR | |
PresenceTypeHow the buyer was present in the sale, such as in person, internet or telesales. | Enum
| No | Yes | SalesTable_BR.PresenceType | |
ThirdPartySalesDigitalPlatformYes/No flag showing whether the sale went through a third-party digital platform or marketplace. | EnumThirdPartySalesDigitalPlatform_BR
| No | Yes | SalesTable_BR.ThirdPartySalesDigitalPlatform | |
ThirdPartySalesDigitalPlatformCNPJCNPJ tax number of the digital platform provider. | String (20)ThirdPartySalesDigitalPlatformCNPJ_BR | No | Yes | SalesTable_BR.ThirdPartySalesDigitalPlatformCNPJ | |
SourceKeyA unique number that the system gives to every record. Other tables often use it to point to this record. | Int64RecId | No | Yes | SalesTable_BR.RecId | |
IsServiceLocationForeign_BRYes/No flag showing whether the service location is abroad. | EnumServiceLocationForeign_BR
| No | Yes | SalesTable_BR.IsServiceLocationForeign_BR | |
ServiceLocationDomestic_BRCity of the service location when it is in Brazil. | Int64RefRecId | No | Yes | LogisticsAddressCity.RecId | SalesTable_BR.ServiceLocationDomestic_BR |
ServiceLocationNonDomestic_BRCountry or region of the service location when it is abroad. | StringLogisticsAddressCountryRegionId | No | Yes | LogisticsAddressCountryRegion.CountryRegionId | SalesTable_BR.ServiceLocationNonDomestic_BR |
MissingNIFReasonType_BRReason why no foreigner ID (NIF) was given. | Enum
| No | Yes | SalesTable_BR.MissingNIFReasonType_BR | |
TotalReturn_BRYes/No flag for a full refusal of the goods. | EnumTotalReturn_BR
| No | Yes | SalesTable_BR.TotalReturn_BR | |
PurposeOfReturn_BRPurpose of the return: refusal or return. | Enum
| No | Yes | SalesTable_BR.PurposeOfReturn_BR | |
GenerateIncomingFiscalDocument_BRYes/No flag for generating an incoming fiscal document. | EnumGenerateIncomingFiscalDocument_BR
| No | Yes | SalesTable_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.
FineCode_BR→CustFineSetup_BR.FineCode(key of CustFineSetup_BR)Many SalesTable_BR records → zero or one CustFineSetup_BR record
CustFineSetup_BR details: see CustCustomerPaymentFineCodeEntity
FiscalDocumentType_BR→FiscalDocumentType_BR.RecId(key of FiscalDocumentType_BR)Many SalesTable_BR records → zero or one FiscalDocumentType_BR record
FiscalDocumentType_BR details: see FiscalDocumentTypeEntity, VendorInvoiceHeaderEntity, FiscalDocumentTypesForCustomersEntity
InterestCode_BR→CustInterestSetup_BR.InterestCode(key of CustInterestSetup_BR)Many SalesTable_BR records → zero or one CustInterestSetup_BR record
CustInterestSetup_BR details: see CustPaymentInterestCodeEntity
InvoiceRefRecID_BR→CustInvoiceJour.RecId(key of CustInvoiceJour)Many SalesTable_BR records → zero or one CustInvoiceJour record
CustInvoiceJour details: see BusinessDocumentSalesInvoiceBaseEntity, ReturnInvoiceHeaderCDSEntity, SalesInvoiceHeaderV4Entity
SalesPurchOperationType_BR→SalesPurchOperationType_BR.RecId(key of SalesPurchOperationType_BR)Many SalesTable_BR records → zero or one SalesPurchOperationType_BR record
SalesPurchOperationType_BR details: see OperationTypeEntity, BrazilParametersEntity, CFOPMatrixEntity
SalesTable→SalesTable.RecId(key of SalesTable)Zero or one SalesTable_BR record → exactly one SalesTable record
SalesTable details: see SalesOrderHeaderV3Entity, SalesOrderHeaderV2Entity, SalesOrderHeaderV4Entity
ServiceLocationDomestic_BR→LogisticsAddressCity.RecId(key of LogisticsAddressCity)Many SalesTable_BR records → exactly one LogisticsAddressCity record
LogisticsAddressCity details: see TrvExpMobileAddressCityEntity, AccountantEntity, LogisticsAddressCityEntity
ServiceLocationNonDomestic_BR→LogisticsAddressCountryRegion.CountryRegionId(key of LogisticsAddressCountryRegion)Many SalesTable_BR records → exactly one LogisticsAddressCountryRegion record
LogisticsAddressCountryRegion details: see ElectronicTaxICPDeclarationEntity, LogisticsAddressCountryRegionEntity, PaymentCalendarEntity
Need help with SalesTableBRBiEntity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.