Table

BusinessDocument

Electronic documents

Holds one record for each electronic document handled by the electronic invoicing framework. It stores the submission status, direction and channel, plus several JSON text columns with extra data. A record can point to a parent record in the same table.

Table name
BusinessDocument
Module
Electronic invoicing
Table group
Transaction
Table type
Regular
Data per company
No
Configuration key
None
Primary index
None
Replacement key
None
Key fields
None
Model
Foundation

Fields (18)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
ChannelID of the external channel used for the document. It links to the external channels table.String
BusinessDocumentAgentId
NoBusinessDocumentExternalAgents.AgentIdNone
ContextJsonFree text in JSON format with additional context data for the document.String (-1)
BusinessDocumentJsonData
NoNone
CreatedDateTimeThe date and time when the record was created. System field.UtcDateTime
CreatedDateTime
NoNone
CustomDataFree text in JSON format for extra custom data.String (-1)
BusinessDocumentJsonData
NoNone
DetailsJsonFree text in JSON format with additional detail data for the document.String (-1)
BusinessDocumentJsonData
NoNone
DirectionDirection of the submission: outgoing, incoming, internal or export channel.Enum
BusinessDocumentDirection (enum)
NoNone
IdentificationJsonFree text in JSON format with additional identification data for the document.String (-1)
BusinessDocumentJsonData
NoNone
ModifiedDateTimeThe date and time when the record was last changed. System field.UtcDateTime
ModifiedDateTime
NoNone
ParentBusinessDocumentPoints to another electronic document record in this table, which acts as its parent.Int64
RefRecId
NoBusinessDocument.RecIdNone
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
ResumedDateTimeDate and time in UTC. By its name, it records when processing was resumed.low confidenceUtcDateTimeNoNone
StateSubmission status of the document, such as Scheduled, Completed, Failed or Canceled.Enum
BusinessDocumentState (enum)
NoNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone
UIDUnique identifier (GUID) of the electronic document.GuidYesNone
VariablesJsonFree text in JSON format with additional variable data for the document.String (-1)
BusinessDocumentJsonData
NoNone
WasPausedYes/No flag. By its name, it shows whether processing of the document was paused at some point.low confidenceEnum
NoYes (enum)
NoNone

Indexes (1)

  • UidIdx

    UID

    Unique.

Relations (2)

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

  • ParentBusinessDocument → BusinessDocument

    Join on ParentBusinessDocument = BusinessDocument.RecId

    Many BusinessDocument records → zero or one BusinessDocument record

  • ExternalAgent → BusinessDocumentExternalAgents

    Join on Channel = BusinessDocumentExternalAgents.AgentId

    Many BusinessDocument records → zero or one BusinessDocumentExternalAgents record

Get this data out

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

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

Email sales@drdynamics.co.uk