Table

EInvoiceHist_MX

Electronic invoice historical information

Holds the history of communication for Mexican electronic invoices. Each record links to an electronic invoice and a PAC (certified provider). It stores the incoming and outgoing messages, status and web service used.

Table name
EInvoiceHist_MX
Module
Electronic invoicing
Table group
Miscellaneous
Table type
Regular
Data per company
Yes
Configuration key
None
Primary index
None
Replacement key
None
Key fields
None
Model
Foundation

Fields (13)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
EnvironmentEnvironment used for the call: blank, testing or production.Enum
EInvoiceCFDIEnvironment_MX (enum)
NoNone
IncomingMessageMessage received from the web service.String (-1)
EInvoiceCFDIIncomingXML_MX
NoNone
OutgoingMessageMessage sent to the web service.String (-1)
EInvoiceCFDIOutgoingXML_MX
NoNone
PACAccountAccount of the PAC used. It links to the PAC table.String (20)
EInvoiceCFDIPACAccount_MX
NoEInvoiceCFDIPACTable_MX.AccountNumNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field.Int64
RecId
NoNone
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field.Integer
RecVersion
NoNone
RefRecIdPoints to the electronic invoice record that this history entry belongs to.Int64
RefRecId
NoEInvoiceJour_MX.RecIdNone
StatusStatus of the CFDI, such as In process, Rejected, Approved or Canceled.Enum
EInvoiceCFDIStatus_MX (enum)
NoNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone
TransDateTimeDate and time of the transaction.UtcDateTime
TransDateTime
NoNone
WebServiceWeb service operation used, such as request stamp or cancel.Enum
EInvoiceCFDIWebService_MX (enum)
NoNone

Indexes (2)

Relations (2)

Each relation joins EInvoiceHist_MX to another table on the fields shown.

  • EInvoiceCFDIPACTable_MX → EInvoiceCFDIPACTable_MX

    Join on PACAccount = EInvoiceCFDIPACTable_MX.AccountNum

    Many EInvoiceHist_MX records → zero or one EInvoiceCFDIPACTable_MX record

  • EInvoiceJour_MX → EInvoiceJour_MX

    Join on RefRecId = EInvoiceJour_MX.RecId

    Many EInvoiceHist_MX records → zero or one EInvoiceJour_MX record

Get this data out

No public entity reads from EInvoiceHist_MX. Its data is only reachable through the application, a custom entity or a database export.

Need help with EInvoiceHist_MX in a report, an integration or a migration? Talk to Dr Dynamics.

Email sales@drdynamics.co.uk