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 · root
  • TrvExpTrans · InnerJoin to DocuRef

Fields (24)

Field and descriptionType / EDT / enumMandatoryOData / DataverseReferencesLineage root
ActualCompanyIdCompany that owns the document type used by this reference.String
SelectableDataArea
NoYesDocuRef.ActualCompanyId
AuthorThe person who created the document reference.Int64
RefRecId
NoYesDirPerson.RecIdDocuRef.Author
DocumentCreatedByThe user who created the record.String (20)
CreatedBy
NoYesDocuRef.CreatedBy
DocumentCreatedDateTimeThe date and time when the record was created.UtcDateTime
CreatedDateTime
NoYesDocuRef.CreatedDateTime
DefaultAttachmentYes/No value marking this as the default attachment.Enum
DocuDefaultAttachment
NoYes

Platform enum: values not in the metadata extract.

NoYesDocuRef.DefaultAttachment
DocumentIdUnique GUID that identifies the document.Guid
DocuDocumentId
NoYesDocuRef.DocumentId
IsJustificationPurpose not clear from the metadata.low confidenceEnum
NoYes

Platform enum: values not in the metadata extract.

NoYesDocuRef.IsJustification
NotesFree-text note about the document.String (-1)
Notes
NoYesDocuRef.Notes
EntRecIdA unique number that the system gives to every record. Other tables often use it to point to this record.Int64
RecId
NoYesDocuRef.RecId
RefCompanyIdCompany of the record that the document is attached to.String
SelectableDataArea
NoYesDocuRef.RefCompanyId
RefRecIdSystem record ID of the record the document is attached to.Int64
RefRecId
NoYesDocuRef.RefRecId
RefTableIdID of the table that holds the record the document is attached to.Integer
RefTableId
NoYesDocuRef.RefTableId
ValueRecIdLink to the document value row that holds the file or URL.Int64
RefRecId
NoYesDocuValue.RecIdDocuRef.ValueRecId
ContentTypeContent type of the attached file.String (50)NoYesvirtual
FileExtensionFile extension of the attached document.StringNoYesvirtual
FileNameShort description of the document.String (60)
Description
NoYesDocuRef.Name
ExpTransNumberNumber of the expense transaction the document belongs to.StringNoYesvirtual
CapturedReceiptText value for the captured receipt. Its exact content is not stated in the metadata.low confidenceStringNoYesvirtual
IsReceiptAttachedYes or no value showing whether a receipt is attached.Enum
NoYesId
NoYes

Platform enum: values not in the metadata extract.

NoYesvirtual
CapturedDocumentText value for the captured document. Its exact content is not stated in the metadata.low confidenceStringNoYesvirtual
IsReceiptValidYes or no value showing whether the receipt is valid.Enum
NoYesId
NoYes

Platform enum: values not in the metadata extract.

NoYescomputed
CreatingWorkerEmployee who created the line.Int64
TrvHcmWorkerRecId
NoYesHcmWorker.RecIdTrvExpTrans.CreatingWorker
CreatingDateTimeThe date and time when the record was created.UtcDateTime
CreatedDateTime
NoYesTrvExpTrans.CreatedDateTime
DocuRefTableNameName of the table that the document reference points to.String (20)NoYescomputed

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.

Need help with TrvExpAttachedDocumentEntity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.

Email sales@drdynamics.co.uk