Data entity
TrvCopilotAutomationReportEntity
Expense report data for an AI agent. It is based on expense reports and joins the company, worker, person and policy violation justification data. Keyed by expense report number and legal entity.
- Entity name
TrvCopilotAutomationReportEntity- Public entity name
ExpCopilotAutomationReport- OData collection
ExpCopilotAutomationReports- Category
Transaction- Module
Other (no module in the metadata)- Read-only
No- Data management enabled
Yes- Configuration key
Trv- Keys
ExpNumber, LegalEntity_DataArea- Staging table
TrvCopilotAutomationReportStaging
Use it in Power BI and Power Platform
- OData URL
https://<environment>/data/ExpCopilotAutomationReports- Dataverse virtual table
mserp_trvcopilotautomationreportentity. 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
TrvExpTable· rootLegalEntity(tableCompanyInfo) · OuterJoin toTrvExpTable· read-onlyTrvHcmWorker(tableHcmWorker) · InnerJoin toTrvExpTable· read-onlyDirPerson_FK(tableDirPerson) · InnerJoin toTrvHcmWorker· read-onlySubmitterJustification(tableTrvPolicyViolationJustification) · OuterJoin toTrvExpTable
Fields (43)
| Field and description | Type / EDT / enum | Mandatory | OData / Dataverse | References | Lineage root |
|---|---|---|---|---|---|
AntiCorruptionApproverFlagYes/No flag for the anti-corruption statement on the approver side.low confidence | Enum
| No | Yes | TrvExpTable.AntiCorruptionApproverFlag | |
AntiCorruptionSubmitterFlagYes/No flag for the anti-corruption statement on the submitter side.low confidence | Enum
| No | Yes | TrvExpTable.AntiCorruptionSubmitterFlag | |
ApprovalStatusStatus of the report, such as draft, submitted, approved or rejected. | Enum
| No | Yes | TrvExpTable.ApprovalStatus | |
CreatingWorkerEmployee who created the report. | Int64TrvHcmWorkerRecId | No | Yes | HcmWorker.RecId | TrvExpTable.CreatingWorker |
CustAccountCustomer account linked to the report. | String (20)CustAccount | No | Yes | CustTable.AccountNum | TrvExpTable.CustAccount |
DefaultDimensionDefault financial dimension values for the report. | Int64LedgerDefaultDimensionValueSet | No | No (private) | DimensionAttributeValueSet.RecId | TrvExpTable.DefaultDimension |
DestinationTravel location linked to the report. | String (255)TrvDestination | No | Yes | TrvDestinations.Destination | TrvExpTable.Destination |
ExpNumberNumber that identifies the expense report. | String (20)TrvExpNumber | No | Yes | TrvExpTable.ExpNumber | |
FinalApproverWorker who gave the final approval. | Int64HcmWorkerRecId | No | No (private) | HcmWorker.RecId | TrvExpTable.FinalApprover |
LegalEntityLegal entity the report belongs to. | Int64LegalEntity | No | No (private) | CompanyInfo.RecId | TrvExpTable.LegalEntity |
InterCompanyLELegal entity for which the expenses are reported. | StringTrvLegalEntity | Yes | Yes | CompanyInfo.DataArea | TrvExpTable.InterCompanyLE |
InvoiceIdInvoice ID of the expense. | String (20)TrvExpInvoiceId | No | Yes | TrvExpTable.InvoiceId | |
PaymentDateDate of the payment. | DateTrvDateStd | No | Yes | TrvExpTable.PaymentDate | |
PaymentVoucherVoucher that identifies the payment. | String (200)PaymId | No | Yes | TrvExpTable.PaymentVoucher | |
PreApprovalNumberNumber of the pre-approval for the expense. | String (20)TrvPreApprovalNumber | No | Yes | TrvExpTable.PreApprovalNumber | |
PostedDateDate the report was posted. | DateTrvDateStd | No | Yes | TrvExpTable.PostedDate | |
ReferenceDataAreaIdCompany the report belongs to. | StringDataAreaId | No | Yes | CompanyInfo.DataArea | TrvExpTable.ReferenceDataAreaId |
SourceDocumentHeaderRecord ID of the linked source document header. | Int64RefRecId | No | No (private) | SourceDocumentHeader.RecId | TrvExpTable.SourceDocumentHeader |
SourceDocumentLineRecord ID of the linked source document line. | Int64RefRecId | No | No (private) | SourceDocumentLine.RecId | TrvExpTable.SourceDocumentLine |
Txt1Description of the report. | String (1000)ItemFreeTxt | No | Yes | TrvExpTable.Txt1 | |
Txt2Purpose of the report, taken from the list of expense purposes. | String (60)TrvTravelTxtEDT | No | Yes | TrvTravelTxt.Txt | TrvExpTable.Txt2 |
VendAccountVendor account linked to the report. | String (20)VendAccount | No | Yes | VendTable.AccountNum | TrvExpTable.VendAccount |
LegalEntity_PartyNumberUnique ID of the party. It is the key of the table. | String (40)DirPartyNumber | Yes | Yes | DirPartyTable.PartyNumber | |
LegalEntity_DataAreaCompany ID of the legal entity. It is the key. | StringSelectableDataArea | Yes | Yes | CompanyInfo.DataArea | |
TrvHcmWorker_PersonPoints to the person record that holds the worker's name. | Int64DirPartyRecId | Yes | No (private) | DirPerson.RecId | HcmWorker.Person |
TrvHcmWorker_PersonnelNumberNumber that identifies the worker within the organisation. | String (25)HcmPersonnelNumberId | No | Yes | HcmWorker.PersonnelNumber | |
AmountTotalTotal amount of the expense report. | Real | No | Yes | virtual | |
PolicyViolationsLevelNumber showing the level of policy violations on the report.low confidence | Int64 | No | Yes | virtual | |
PolicyViolationCountNumber of policy violations on the report. | Integer | No | Yes | virtual | |
ExpTransNumberExpense transaction number linked to the report.low confidence | String (1000) | No | Yes | virtual | |
WorkflowActionText of the workflow action for the report.low confidence | String (20) | No | Yes | virtual | |
PolicyViolationMessageText of the policy violation message for the report. | String (1000) | No | Yes | virtual | |
PartyNumberUnique ID of the party. It is the key of the table. | String (40)DirPartyNumber | No | Yes | DirPartyTable.PartyNumber | |
DocumentCreatedDateTimeThe date and time when the record was created. | UtcDateTimeCreatedDateTime | No | Yes | TrvExpTable.CreatedDateTime | |
DirPerson_FK_PartyNumberUnique ID of the party. It is the key of the table. | String (40)DirPartyNumber | No | Yes | DirPartyTable.PartyNumber | |
ProjIdProject linked to the report. | String (20)ProjId | No | Yes | ProjTable.ProjId | TrvExpTable.ProjId |
ProjStatusIdProject line property set on the report. | StringProjLinePropertyId | No | Yes | ProjLineProperty.LinePropertyId | TrvExpTable.ProjStatusId |
ReportCreatedDateTimeThe date and time when the record was created. | UtcDateTimeCreatedDateTime | No | Yes | TrvExpTable.CreatedDateTime | |
AgentWorkerIdNumeric ID of the worker linked to the agent.low confidence | Int64 | No | Yes | virtual | |
TrvExpGeneratedBySource that created the report: a user, the Expense Agent or a mobile user. | Enum
| No | Yes | TrvExpTable.TrvExpGeneratedBy | |
SubmitterJustificationText the employee gives to explain the violation. | String (1000)TrvSubmitterJustification | No | Yes | TrvPolicyViolationJustification.Justification | |
JustifyingWorkerEmployee who gave the justification. It points to a worker record. | Int64TrvHcmWorkerRecId | Yes | Yes | HcmWorker.RecId | TrvPolicyViolationJustification.JustifyingWorker |
IsSubmitterJustificationRequiredShows whether the submitter must give a justification, as a whole number.low confidence | Integer | No | Yes | virtual |
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.
CreatingWorker→HcmWorker.RecId(key of HcmWorker)Many TrvExpTable records → exactly one HcmWorker record
HcmWorker details: see TrvExpMobileUserDisplayInfoEntity, BusinessProcessHeaderEntity, HcmInjuryIncidentEntity
CustAccount→CustTable.AccountNum(key of CustTable)Join on all of:
CustAccount=CustTable.AccountNum,ReferenceDataAreaId=CustTable.dataAreaIdMany TrvExpTable records → zero or one CustTable record
CustTable details: see CustCustomerV3Entity, CustFoundationExtendedEntity, CustFoundationEntity
DefaultDimension→DimensionAttributeValueSet.RecId(key of DimensionAttributeValueSet)Many TrvExpTable records → zero or one DimensionAttributeValueSet record
DimensionAttributeValueSet details: see DimensionAttributeValueSetCDREntity, DimensionSetEntity
Destination→TrvDestinations.Destination(key of TrvDestinations)Join on all of:
Destination=TrvDestinations.Destination,ReferenceDataAreaId=TrvDestinations.dataAreaIdMany TrvExpTable records → zero or one TrvDestinations record
TrvDestinations details: see TrvTravelLocationEntity
FinalApprover→HcmWorker.RecId(key of HcmWorker)Many TrvExpTable records → exactly one HcmWorker record
HcmWorker details: see TrvExpMobileUserDisplayInfoEntity, BusinessProcessHeaderEntity, HcmInjuryIncidentEntity
LegalEntity→CompanyInfo.RecId(key of CompanyInfo)Many TrvExpTable records → exactly one CompanyInfo record
CompanyInfo details: see BusinessDocumentSalesInvoiceBaseEntity, TrvExpMobileCompanyInfoV2Entity, OMLegalEntity
InterCompanyLE→CompanyInfo.DataArea(key of CompanyInfo)Many TrvExpTable records → zero or one CompanyInfo record
CompanyInfo details: see OMLegalEntity, TrvExpMobileExpenseLineAttachedToReportEntity, TrvExpMobileLineApprovalEntity
ReferenceDataAreaId→CompanyInfo.DataArea(key of CompanyInfo)Many TrvExpTable records → zero or one CompanyInfo record
CompanyInfo details: see OMLegalEntity, TrvExpMobileExpenseLineAttachedToReportEntity, TrvExpMobileLineApprovalEntity
SourceDocumentHeader→SourceDocumentHeader.RecId(key of SourceDocumentHeader)Zero or one TrvExpTable record → zero or one SourceDocumentHeader record
SourceDocumentHeader details: see SourceDocumentHeaderBiEntity
SourceDocumentLine→SourceDocumentLine.RecId(key of SourceDocumentLine)Many TrvExpTable records → zero or one SourceDocumentLine record
SourceDocumentLine details: see SourceDocumentLineBiEntity, SourceDocumentLineCDREntity
Txt2→TrvTravelTxt.Txt(key of TrvTravelTxt)Join on all of:
Txt2=TrvTravelTxt.Txt,ReferenceDataAreaId=TrvTravelTxt.dataAreaIdMany TrvExpTable records → zero or one TrvTravelTxt record
TrvTravelTxt details: see TrvExpenseReportPurposeEntity, DimAttributeTrvTravelTxtEntity
VendAccount→VendTable.AccountNum(key of VendTable)Join on all of:
VendAccount=VendTable.AccountNum,ReferenceDataAreaId=VendTable.dataAreaIdMany TrvExpTable records → zero or one VendTable record
VendTable details: see VendVendorV2Entity, RetailVendVendorV3Entity, VendVendorEntity
TrvHcmWorker_Person→DirPerson.RecId(key of DirPerson)Zero or one HcmWorker record → exactly one DirPerson record
DirPerson details: see CustCustomerBaseEntity, CustFoundationEntity, DirPartyCDSEntity
ProjId→ProjTable.ProjId(key of ProjTable)Join on all of:
ProjId=ProjTable.ProjId,InterCompanyLE=ProjTable.dataAreaIdMany TrvExpTable records → zero or one ProjTable record
ProjTable details: see ProjectEntity, ProjProjectV2Entity, ProjCDSProjectEntity
ProjStatusId→ProjLineProperty.LinePropertyId(key of ProjLineProperty)Join on all of:
ProjStatusId=ProjLineProperty.LinePropertyId,InterCompanyLE=ProjLineProperty.dataAreaIdMany TrvExpTable records → zero or one ProjLineProperty record
ProjLineProperty details: see ProjProjectLinePropertyEntity, TrvExpMobileProjLinePropertyEntity, ProjBillingTypeLinePropertyEntity
JustifyingWorker→HcmWorker.RecId(key of HcmWorker)Many TrvPolicyViolationJustification records → exactly one HcmWorker record
HcmWorker details: see TrvExpMobileUserDisplayInfoEntity, BusinessProcessHeaderEntity, HcmInjuryIncidentEntity
Need help with TrvCopilotAutomationReportEntity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.