Data entity

EFDocumentReceivedXmlEntity

Holds NF-e XML documents received from other parties, used for Brazil. Each record is identified by the access key. It includes the issuer details, status from the tax authority, tax and total amounts, and a link to the fiscal establishment.

Entity name
EFDocumentReceivedXmlEntity
Public entity name
EFDocumentReceivedXml
OData collection
EFDocumentReceivedXmls
Category
Not set
Module
Accounts receivable
Read-only
No
Data management enabled
Yes
Configuration key
None
Keys
Accesskey
Staging table
EFDocumentReceivedXmlStaging

Use it in Power BI and Power Platform

OData URL
https://<environment>/data/EFDocumentReceivedXmls
Dataverse virtual table
mserp_efdocumentreceivedxmlentity. 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

  • EFDocumentReceivedXML_BR · root
  • FiscalEstablisment_BR (table FiscalEstablishment_BR) · InnerJoin to EFDocumentReceivedXML_BR · read-only
  • EFDocumentReceivedXmlView_BR · InnerJoin to EFDocumentReceivedXML_BR
  • EFDocumentReceivedXmlViewAddInfo_BR · InnerJoin to EFDocumentReceivedXmlView_BR
  • EFDocumentReceivedXmlViewAddress_BR · InnerJoin to EFDocumentReceivedXmlView_BR

Fields (44)

Field and descriptionType / EDT / enumMandatoryOData / DataverseReferencesLineage root
AccesskeyAccess key that identifies the electronic document.String (45)
EFDocAccessKey_BR
YesYesEFDocumentReceivedXML_BR.Accesskey
CNPJCNPJ number of the party on the document.String (20)
CNPJNum_BR
NoYesEFDocumentReceivedXML_BR.CNPJNum_BR
FiscalDocumentReferencePoints to the fiscal document header.Int64
RefRecId
NoNo (private)FiscalDocument_BR.RecIdEFDocumentReceivedXML_BR.FiscalDocument_BR
NumberNumber of the fiscal document.String (20)
FiscalDocumentNumber_BR
NoYesEFDocumentReceivedXML_BR.FiscalDocumentNumber
SeriesSeries of the fiscal document.String (9)
FiscalDocumentSeries_BR
NoYesEFDocumentReceivedXML_BR.FiscalDocumentSeries
FiscalEstablishmentReferencePoints to the fiscal establishment.Int64
FiscalEstablishmentRecId_BR
YesNo (private)FiscalEstablishment_BR.RecIdEFDocumentReceivedXML_BR.FiscalEstablishment_BR
IBGECodeIBGE code of the state.String (2)
StateIBGECode_BR
NoYesEFDocumentReceivedXML_BR.IBGECode
StatusFromSEFAZStatus returned from the SEFAZ inquiry, such as Approved, Canceled or Denied.Enum
FiscalDocumentStatus_BR
  • Blank 0
  • Approved 1
  • Cancelled 2
  • Created 3
  • Denied 4
  • Discarded 5
  • Rejected 6
  • RejectedNoFix 7
  • Reversed 8
  • CancelledBySubstitution 9
NoYesEFDocumentReceivedXML_BR.InquiryStatus
DateAndTimeOfTheLastInquiryDate and time of the latest inquiry.UtcDateTime
EFDocRecXmlLastInquiryDateTime_BR
NoYesEFDocumentReceivedXML_BR.LastInquiry
ManualInsertionYes/No flag showing that the document was entered by hand.Enum
NoYes

Platform enum: values not in the metadata extract.

NoYesEFDocumentReceivedXML_BR.ManualEntry
PostedYes/No flag showing whether the document is posted.Enum
NoYes

Platform enum: values not in the metadata extract.

NoYesEFDocumentReceivedXML_BR.Posted
ReturnCodeReturn code from the authority.String
EFDocReturnCode_BR
NoYesEFDocumentReceivedXML_BR.ReturnCode
DescriptionText describing the return code.String (60)
Description
NoYesEFDocumentReceivedXML_BR.ReturnCodeDescription
FiscalEstablishmentIdUnique ID of the fiscal establishment. It is the business key of the table.String
FiscalEstablishmentId_BR
YesYesFiscalEstablishment_BR.FiscalEstablishmentId
ICMSAmountICMS tax amount.Real
TaxAmount
NoYesEFDocumentReceivedXmlView_BR.ICMSAmount
ICMSBaseAmountBase amount for ICMS.Real
TaxBase
NoYesEFDocumentReceivedXmlView_BR.ICMSBaseAmount
ICMSSTAmountICMS-ST tax amount.Real
TaxAmount
NoYesEFDocumentReceivedXmlView_BR.ICMSSTAmount
ICMSSTBaseAmountBase amount for ICMS-ST.Real
TaxBase
NoYesEFDocumentReceivedXmlView_BR.ICMSSTBaseAmount
IPIAmountIPI tax amount.Real
TaxAmount
NoYesEFDocumentReceivedXmlView_BR.IPIAmount
IssueDateDate on which the document was issued.Date
EFDocRecXmlIssueDate_BR
NoYesEFDocumentReceivedXmlView_BR.IssueDate
IssueTimeTime of day when the document was issued.Time
EFDocRecXmlIssueTime_BR
NoYesEFDocumentReceivedXmlView_BR.IssueTime
IssueTimezoneTime zone of the issue time.String (6)
EFDocRecXmlIssueTimezone_BR
NoYesEFDocumentReceivedXmlView_BR.IssueTimezone
ThirdPartyCNPJCNPJ of the third party.String (20)
CNPJNum_BR
NoYesEFDocumentReceivedXmlView_BR.ThirdPartyCNPJ
ThirdPartyIEState registration number (IE) of the third party.String (20)
IENum_BR
NoYesEFDocumentReceivedXmlView_BR.ThirdPartyIE
ThirdPartyIESTTributary substitution registration number of the third party.String (20)
IENum_BR
NoYesEFDocumentReceivedXmlView_BR.ThirdPartyIEST
ThirdPartyNameName of the vendor.String (60)
EFDocRecXmlThirdPartyName_BR
NoYesEFDocumentReceivedXmlView_BR.ThirdPartyName
TotalAmountTotal amount of the document (in accounting currency).Real
AmountMST
NoYesEFDocumentReceivedXmlView_BR.TotalAmount
TotalDiscountTotal discount on the document (in accounting currency).Real
DiscAmountMST
NoYesEFDocumentReceivedXmlView_BR.TotalDiscount
TotalMarkupFreightAmountFreight charge total.Real
MarkupSumFreight_BR
NoYesEFDocumentReceivedXmlView_BR.TotalMarkupFreightAmount
TotalMarkupInsuranceAmountInsurance charge total.Real
MarkupSumInsurance_BR
NoYesEFDocumentReceivedXmlView_BR.TotalMarkupInsuranceAmount
TotalMarkupOtherAmountTotal of other charges.Real
MarkupSumOthers_BR
NoYesEFDocumentReceivedXmlView_BR.TotalMarkupOtherAmount
TotalProductAmountTotal amount of the products (in accounting currency).Real
AmountMST
NoYesEFDocumentReceivedXmlView_BR.TotalProductAmount
ComplementaryInformationFree text meant for the taxpayer.String (-1)
EFDocRecXmlCompInf_BR
NoYesEFDocumentReceivedXmlViewAddInfo_BR.ComplementaryInformation
AdditionalInformationFree text meant for the tax authority.String (-1)
EFDocRecXmlAddInf_BR
NoYesEFDocumentReceivedXmlViewAddInfo_BR.AdditionalInformation
BuildingComplementExtra address detail, such as a building or unit.String (60)
LogisticsAddressBuildingCompliment
NoYesEFDocumentReceivedXmlViewAddress_BR.BuildingComplement
CityIbgeCodeIBGE code of the city.String (7)
CityIBGECode_BR
NoYesEFDocumentReceivedXmlViewAddress_BR.CityIbgeCode
CityNameName of the city.String (60)
LogisticsAddressCityName
NoYesEFDocumentReceivedXmlViewAddress_BR.CityName
DistrictNameName of the district.String (60)
LogisticsAddressDistrictName
NoYesEFDocumentReceivedXmlViewAddress_BR.DistrictName
StateIdState code.String
LogisticsAddressStateId
NoYesEFDocumentReceivedXmlViewAddress_BR.StateId
StreetNameStreet name.String (60)
StreetName
NoYesEFDocumentReceivedXmlViewAddress_BR.StreetName
StreetNumberStreet number.String (60)
EFDocRecXmlAddressNumber_BR
NoYesEFDocumentReceivedXmlViewAddress_BR.StreetNumber
ZipCodeZIP or postal code.String (8)
EFDocRecXmlZipCode_BR
YesYesEFDocumentReceivedXmlViewAddress_BR.ZipCode
EFDocumentReceivedXmlViewRecIdA unique number that the system gives to every record. Other tables often use it to point to this record.Int64
RecId
NoYesEFDocumentReceivedXmlView_BR.RecId
BusinessDocumentIdUnique ID of the electronic document.Guid
SysGuid
NoYesEFDocumentReceivedXmlView_BR.BusinessDocumentId

Foreign keys (2)

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

Email sales@drdynamics.co.uk