Data entity

TrvExpenseAgentReportEntity

Expense reports for the Expense Agent, keyed by expense report number and legal entity. It is based on the expense report table and adds worker and person details. It also carries policy violation information and the report amount. It can be written to.

Entity name
TrvExpenseAgentReportEntity
Public entity name
ExpenseAgentReport
OData collection
ExpenseAgentReports
Category
Transaction
Module
Other (no module in the metadata)
Read-only
No
Data management enabled
No
Configuration key
Trv
Keys
ExpNumber, LegalEntity_DataArea
Staging table
None

Use it in Power BI and Power Platform

OData URL
https://<environment>/data/ExpenseAgentReports
Dataverse virtual table
mserp_trvexpenseagentreportentity. 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

  • TrvExpTable · root
  • LegalEntity (table CompanyInfo) · OuterJoin to TrvExpTable · read-only
  • TrvHcmWorker (table HcmWorker) · InnerJoin to TrvExpTable · read-only
  • DirPerson_FK (table DirPerson) · InnerJoin to TrvHcmWorker · read-only
  • SubmitterJustification (table TrvPolicyViolationJustification) · OuterJoin to TrvExpTable

Fields (42)

Field and descriptionType / EDT / enumMandatoryOData / DataverseReferencesLineage root
AntiCorruptionApproverFlagYes/No flag for the anti-corruption statement on the approver side.low confidenceEnum
NoYes

Platform enum: values not in the metadata extract.

NoYesTrvExpTable.AntiCorruptionApproverFlag
AntiCorruptionSubmitterFlagYes/No flag for the anti-corruption statement on the submitter side.low confidenceEnum
NoYes

Platform enum: values not in the metadata extract.

NoYesTrvExpTable.AntiCorruptionSubmitterFlag
ApprovalStatusStatus of the report, such as draft, submitted, approved or rejected.Enum
TrvAppStatus
  • None 0
  • Create 1
  • Submitted 2
  • Approved 3
  • Returned 4
  • Ready 5
  • Ledger 6
  • Cancelled 8
  • Pending 9
  • Matched 10
NoYesTrvExpTable.ApprovalStatus
CreatingWorkerEmployee who created the report.Int64
TrvHcmWorkerRecId
NoYesHcmWorker.RecIdTrvExpTable.CreatingWorker
CustAccountCustomer account linked to the report.String (20)
CustAccount
NoYesCustTable.AccountNumTrvExpTable.CustAccount
DefaultDimensionDefault financial dimension values for the report.Int64
LedgerDefaultDimensionValueSet
NoNo (private)DimensionAttributeValueSet.RecIdTrvExpTable.DefaultDimension
DestinationTravel location linked to the report.String (255)
TrvDestination
NoYesTrvDestinations.DestinationTrvExpTable.Destination
ExpNumberNumber that identifies the expense report.String (20)
TrvExpNumber
NoYesTrvExpTable.ExpNumber
FinalApproverWorker who gave the final approval.Int64
HcmWorkerRecId
NoNo (private)HcmWorker.RecIdTrvExpTable.FinalApprover
LegalEntityLegal entity the report belongs to.Int64
LegalEntity
NoNo (private)CompanyInfo.RecIdTrvExpTable.LegalEntity
InterCompanyLELegal entity for which the expenses are reported.String
TrvLegalEntity
YesYesCompanyInfo.DataAreaTrvExpTable.InterCompanyLE
InvoiceIdInvoice ID of the expense.String (20)
TrvExpInvoiceId
NoYesTrvExpTable.InvoiceId
PaymentDateDate of the payment.Date
TrvDateStd
NoYesTrvExpTable.PaymentDate
PaymentVoucherVoucher that identifies the payment.String (200)
PaymId
NoYesTrvExpTable.PaymentVoucher
PreApprovalNumberNumber of the pre-approval for the expense.String (20)
TrvPreApprovalNumber
NoYesTrvExpTable.PreApprovalNumber
PostedDateDate the report was posted.Date
TrvDateStd
NoYesTrvExpTable.PostedDate
ReferenceDataAreaIdCompany the report belongs to.String
DataAreaId
NoYesCompanyInfo.DataAreaTrvExpTable.ReferenceDataAreaId
SourceDocumentHeaderRecord ID of the linked source document header.Int64
RefRecId
NoNo (private)SourceDocumentHeader.RecIdTrvExpTable.SourceDocumentHeader
SourceDocumentLineRecord ID of the linked source document line.Int64
RefRecId
NoNo (private)SourceDocumentLine.RecIdTrvExpTable.SourceDocumentLine
Txt1Description of the report.String (1000)
ItemFreeTxt
NoYesTrvExpTable.Txt1
Txt2Purpose of the report, taken from the list of expense purposes.String (60)
TrvTravelTxtEDT
NoYesTrvTravelTxt.TxtTrvExpTable.Txt2
VendAccountVendor account linked to the report.String (20)
VendAccount
NoYesVendTable.AccountNumTrvExpTable.VendAccount
LegalEntity_PartyNumberUnique ID of the party. It is the key of the table.String (40)
DirPartyNumber
YesYesDirPartyTable.PartyNumber
LegalEntity_DataAreaCompany ID of the legal entity. It is the key.String
SelectableDataArea
YesYesCompanyInfo.DataArea
TrvHcmWorker_PersonPoints to the person record that holds the worker's name.Int64
DirPartyRecId
YesNo (private)DirPerson.RecIdHcmWorker.Person
TrvHcmWorker_PersonnelNumberNumber that identifies the worker within the organisation.String (25)
HcmPersonnelNumberId
NoYesHcmWorker.PersonnelNumber
AmountTotalTotal amount of the expense report.RealNoYesvirtual
PolicyViolationsLevelNumber showing how serious the policy violations on the report are.low confidenceInt64NoYesvirtual
PolicyViolationCountNumber of policy violations found on the report.IntegerNoYesvirtual
ExpTransNumberExpense transaction number of a line linked to the report.low confidenceString (1000)NoYesvirtual
WorkflowActionText naming a workflow action for the report.low confidenceString (20)NoYesvirtual
PolicyViolationMessageText of the policy violation message shown for the report.String (1000)NoYesvirtual
PartyNumberUnique ID of the party. It is the key of the table.String (40)
DirPartyNumber
NoYesDirPartyTable.PartyNumber
DocumentCreatedDateTimeThe date and time when the record was created.UtcDateTime
CreatedDateTime
NoYesTrvExpTable.CreatedDateTime
DirPerson_FK_PartyNumberUnique ID of the party. It is the key of the table.String (40)
DirPartyNumber
NoYesDirPartyTable.PartyNumber
ProjIdProject linked to the report.String (20)
ProjId
NoYesProjTable.ProjIdTrvExpTable.ProjId
ProjStatusIdProject line property set on the report.String
ProjLinePropertyId
NoYesProjLineProperty.LinePropertyIdTrvExpTable.ProjStatusId
ReportCreatedDateTimeThe date and time when the record was created.UtcDateTime
CreatedDateTime
NoYesTrvExpTable.CreatedDateTime
TrvExpGeneratedBySource that created the report: a user, the Expense Agent or a mobile user.Enum
TrvExpGeneratedBy
  • User 0
  • CopilotAutomation 1
  • MobileApp 2
NoYesTrvExpTable.TrvExpGeneratedBy
SubmitterJustificationText the employee gives to explain the violation.String (1000)
TrvSubmitterJustification
NoYesTrvPolicyViolationJustification.Justification
JustifyingWorkerEmployee who gave the justification. It points to a worker record.Int64
TrvHcmWorkerRecId
YesYesHcmWorker.RecIdTrvPolicyViolationJustification.JustifyingWorker
IsSubmitterJustificationRequiredShows whether the person submitting the report must give a justification. Stored as a number.IntegerNoYesvirtual

Foreign keys (16)

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

Email sales@drdynamics.co.uk