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 description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
ChannelID of the external channel used for the document. It links to the external channels table. | StringBusinessDocumentAgentId | No | BusinessDocumentExternalAgents.AgentId | None |
ContextJsonFree text in JSON format with additional context data for the document. | String (-1)BusinessDocumentJsonData | No | None | |
CreatedDateTimeThe date and time when the record was created. System field. | UtcDateTimeCreatedDateTime | No | None | |
CustomDataFree text in JSON format for extra custom data. | String (-1)BusinessDocumentJsonData | No | None | |
DetailsJsonFree text in JSON format with additional detail data for the document. | String (-1)BusinessDocumentJsonData | No | None | |
DirectionDirection of the submission: outgoing, incoming, internal or export channel. | EnumBusinessDocumentDirection (enum) | No | None | |
IdentificationJsonFree text in JSON format with additional identification data for the document. | String (-1)BusinessDocumentJsonData | No | None | |
ModifiedDateTimeThe date and time when the record was last changed. System field. | UtcDateTimeModifiedDateTime | No | None | |
ParentBusinessDocumentPoints to another electronic document record in this table, which acts as its parent. | Int64RefRecId | No | BusinessDocument.RecId | None |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field. | Int64RecId | No | None | |
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field. | IntegerRecVersion | No | None | |
ResumedDateTimeDate and time in UTC. By its name, it records when processing was resumed.low confidence | UtcDateTime | No | None | |
StateSubmission status of the document, such as Scheduled, Completed, Failed or Canceled. | EnumBusinessDocumentState (enum) | No | None | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None | |
UIDUnique identifier (GUID) of the electronic document. | Guid | Yes | None | |
VariablesJsonFree text in JSON format with additional variable data for the document. | String (-1)BusinessDocumentJsonData | No | None | |
WasPausedYes/No flag. By its name, it shows whether processing of the document was paused at some point.low confidence | EnumNoYes (enum) | No | None |
Indexes (1)
UidIdxUnique.
Relations (2)
Each relation joins BusinessDocument to another table on the fields shown.
ParentBusinessDocument→BusinessDocumentJoin on
ParentBusinessDocument = BusinessDocument.RecIdMany BusinessDocument records → zero or one BusinessDocument record
ExternalAgent→BusinessDocumentExternalAgentsJoin on
Channel = BusinessDocumentExternalAgents.AgentIdMany 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.