Data entity

TrvCopilotAttachedReceiptEntity

Lists documents attached to expense lines, for the expense copilot. 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 the document file extension and the expense line it is attached to.

Entity name
TrvCopilotAttachedReceiptEntity
Public entity name
ExpCopilotAttachedReceipt
OData collection
ExpCopilotAttachedReceipts
Category
Not set
Module
Other (no module in the metadata)
Read-only
No
Data management enabled
Yes
Configuration key
Trv
Keys
EntRecId
Staging table
TrvCopilotAttachedReceiptStaging

Use it in Power BI and Power Platform

OData URL
https://<environment>/data/ExpCopilotAttachedReceipts
Dataverse virtual table
mserp_trvcopilotattachedreceiptentity. 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 · read-only
  • TrvExpTrans · InnerJoin to DocuRef · read-only

Fields (29)

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
ContactPersonIdID of the contact person linked to the document.String (20)
ContactPersonId
NoYesDocuRef.ContactPersonId
DocCreatedByThe user who created the record.String (20)
CreatedBy
NoYesDocuRef.CreatedBy
DocCreatedDateTimeThe 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
EncyclopediaItemIdID of the knowledge article item linked to the document.String
smmEncyclopediaItemId
NoYesDocuRef.EncyclopediaItemId
InterCompanySkipUpdateOption that sets whether internal, intercompany or both kinds of update are skipped.Enum
InterCompanySkipUpdate
  • No 0
  • Internal 1
  • InterCompany 2
  • Both 3
NoYesDocuRef.InterCompanySkipUpdate
IsJustificationPurpose not clear from the metadata.low confidenceEnum
NoYes

Platform enum: values not in the metadata extract.

NoYesDocuRef.IsJustification
DocModifiedByThe user who last changed the record.String (20)
ModifiedBy
NoYesDocuRef.ModifiedBy
DocModifiedDateTimeThe date and time when the record was last changed.UtcDateTime
ModifiedDateTime
NoYesDocuRef.ModifiedDateTime
NameShort description of the document.String (60)
Description
NoYesDocuRef.Name
NotesFree-text note about the document.String (-1)
Notes
NoYesDocuRef.Notes
PartyGlobal address book party linked to the document reference.Int64
RefRecId
NoYesDirPartyTable.RecIdDocuRef.Party
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
YesYesDocuRef.RefCompanyId
RefRecIdSystem record ID of the record the document is attached to.Int64
RefRecId
YesYesDocuRef.RefRecId
RefTableIdID of the table that holds the record the document is attached to.Integer
RefTableId
YesYesDocuRef.RefTableId
RestrictionShows whether the document is internal or external.Enum
DocuRestriction
  • Internal 0
  • External 1
NoYesDocuRef.Restriction
smmEMailEntryIDEntry ID of an email item, used by sales and marketing.String (255)
smmEMailEntryID
NoYesDocuRef.smmEMailEntryID
smmEMailStoreIDStore ID of the mailbox where an email item is kept, used by sales and marketing.String (300)
smmEMailStoreID
NoYesDocuRef.smmEMailStoreID
smmTableFlag linked to the sales and marketing table.low confidenceEnum
boolean

Platform enum: values not in the metadata extract.

NoYesDocuRef.smmTable
CapturedDocumentText value for the captured document. Its exact content is not stated in the metadata.low confidenceStringNoYesvirtual
ExpenseLineAttachedToIdentifies the expense line that the document is attached to.String (20)NoYesvirtual
FileExtensionFile extension of the attached document, such as the type of file.StringNoYesvirtual
DocuRefTableIdID of the table that holds the record the document is attached to.Integer
RefTableId
YesNo (private)DocuRef.RefTableId
DocuRefTableNameName of the table that the document reference points to.String (20)NoYescomputed
IsCashExpensePurpose not clear from the metadata.low confidenceEnum
NoYes

Platform enum: values not in the metadata extract.

NoYesDocuRef.IsCashExpense

Foreign keys (2)

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 TrvCopilotAttachedReceiptEntity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.

Email sales@drdynamics.co.uk