Data entity
TrvExpenseAgentUnattachedDocumentEntity
Lists documents for the expense agent that are not yet attached to an expense. It is built on document references and joins unreconciled expense receipt data. Each record is one document, identified by its system record ID, with receipt flags and a reference.
- Entity name
TrvExpenseAgentUnattachedDocumentEntity- Public entity name
ExpenseAgentUnattachedDocument- OData collection
ExpenseAgentUnattachedDocuments- Category
Transaction- Module
Other (no module in the metadata)- Read-only
No- Data management enabled
No- Configuration key
Trv- Keys
EntRecId- Staging table
None
Use it in Power BI and Power Platform
- OData URL
https://<environment>/data/ExpenseAgentUnattachedDocuments- Dataverse virtual table
mserp_trvexpenseagentunattacheddocumententity. 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
DocuRef· rootTrvUnreconciledExpenseTransaction· InnerJoin toDocuRef
Fields (24)
| Field and description | Type / EDT / enum | Mandatory | OData / Dataverse | References | Lineage root |
|---|---|---|---|---|---|
ActualCompanyIdCompany that owns the document type used by this reference. | StringSelectableDataArea | No | Yes | DocuRef.ActualCompanyId | |
AuthorThe person who created the document reference. | Int64RefRecId | No | Yes | DirPerson.RecId | DocuRef.Author |
DocumentCreatedByThe user who created the record. | String (20)CreatedBy | No | Yes | DocuRef.CreatedBy | |
DocumentCreatedDateTimeThe date and time when the record was created. | UtcDateTimeCreatedDateTime | No | Yes | DocuRef.CreatedDateTime | |
DefaultAttachmentYes/No value marking this as the default attachment. | EnumDocuDefaultAttachment
| No | Yes | DocuRef.DefaultAttachment | |
DocumentIdUnique GUID that identifies the document. | GuidDocuDocumentId | No | Yes | DocuRef.DocumentId | |
IsJustificationPurpose not clear from the metadata.low confidence | Enum
| No | Yes | DocuRef.IsJustification | |
NotesFree-text note about the document. | String (-1)Notes | No | Yes | DocuRef.Notes | |
EntRecIdA unique number that the system gives to every record. Other tables often use it to point to this record. | Int64RecId | No | Yes | DocuRef.RecId | |
RefCompanyIdCompany of the record that the document is attached to. | StringSelectableDataArea | No | Yes | DocuRef.RefCompanyId | |
RefRecIdSystem record ID of the record the document is attached to. | Int64RefRecId | No | Yes | DocuRef.RefRecId | |
RefTableIdID of the table that holds the record the document is attached to. | IntegerRefTableId | No | Yes | DocuRef.RefTableId | |
ValueRecIdLink to the document value row that holds the file or URL. | Int64RefRecId | No | Yes | DocuValue.RecId | DocuRef.ValueRecId |
ContentTypeContent type of the file. | String (50) | No | Yes | virtual | |
FileExtensionFile extension of the document. | String | No | Yes | virtual | |
FileNameShort description of the document. | String (60)Description | No | Yes | DocuRef.Name | |
ExpTransNumberNumber of the related expense transaction. | String (20) | No | Yes | virtual | |
IsReceiptAttachedYes or no value showing whether a receipt is attached. | EnumNoYesId
| No | Yes | virtual | |
CapturedDocumentText value for the captured document. Its exact content is not stated in the metadata.low confidence | String | No | Yes | virtual | |
IsReceiptValidYes or no value showing whether the receipt is valid. | EnumNoYesId
| No | Yes | computed | |
CreatingDateTimeThe date and time when the record was created. | UtcDateTimeCreatedDateTime | No | Yes | DocuRef.CreatedDateTime | |
DocuRefTableNameName of the table that the document reference points to. | String (40) | No | Yes | computed | |
CreatingWorkerPoints to the worker the receipt data belongs to. | Int64RefRecId | No | Yes | HcmWorker.RecId | TrvUnreconciledExpenseTransaction.Worker |
IsCashExpensePurpose not clear from the metadata.low confidence | Enum
| No | Yes | DocuRef.IsCashExpense |
Foreign keys (3)
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.
ValueRecId→DocuValue.RecId(key of DocuValue)Many DocuRef records → zero or one DocuValue record
DocuValue details: see EcoResProductDocumentAttachmentEntity, EcoResReleasedProductDocumentAttachmentEntity, EntAssetMaintenanceRequestDocumentAttachmentEntity
CreatingWorker→HcmWorker.RecId(key of HcmWorker)Many TrvUnreconciledExpenseTransaction records → exactly one HcmWorker record
HcmWorker details: see TrvExpMobileUserDisplayInfoEntity, BusinessProcessHeaderEntity, HcmInjuryIncidentEntity
Need help with TrvExpenseAgentUnattachedDocumentEntity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.