Data entity
TrvExpAttachedDocumentEntity
Lists documents attached to expense lines. It is built on document references and joins the expense lines table. Each record is one attachment, identified by its system record ID. It adds receipt flags, the expense transaction number and the employee.
- Entity name
TrvExpAttachedDocumentEntity- Public entity name
ExpAttachedDocument- OData collection
ExpAttachedDocuments- Category
Transaction- Module
Other (no module in the metadata)- Read-only
No- Data management enabled
Yes- Configuration key
Trv- Keys
EntRecId- Staging table
TrvExpAttachedDocumentStaging
Use it in Power BI and Power Platform
- OData URL
https://<environment>/data/ExpAttachedDocuments- Dataverse virtual table
mserp_trvexpattacheddocumententity. 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
DocuRef· rootTrvExpTrans· 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 attached file. | String (50) | No | Yes | virtual | |
FileExtensionFile extension of the attached document. | String | No | Yes | virtual | |
FileNameShort description of the document. | String (60)Description | No | Yes | DocuRef.Name | |
ExpTransNumberNumber of the expense transaction the document belongs to. | String | No | Yes | virtual | |
CapturedReceiptText value for the captured receipt. Its exact content is not stated in the metadata.low confidence | String | 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 | |
CreatingWorkerEmployee who created the line. | Int64TrvHcmWorkerRecId | No | Yes | HcmWorker.RecId | TrvExpTrans.CreatingWorker |
CreatingDateTimeThe date and time when the record was created. | UtcDateTimeCreatedDateTime | No | Yes | TrvExpTrans.CreatedDateTime | |
DocuRefTableNameName of the table that the document reference points to. | String (20) | No | Yes | computed |
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 TrvExpTrans records → exactly one HcmWorker record
HcmWorker details: see TrvExpMobileUserDisplayInfoEntity, BusinessProcessHeaderEntity, HcmInjuryIncidentEntity
Need help with TrvExpAttachedDocumentEntity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.