Data entity
TrvProjectExpensePolicyEntity
Holds expense policies for projects. A policy can be limited by city, expense category, customer, project, contract, worker or worker group, and by date range and currency. It also has allowable and maximum amounts, a maximum percent and receipt rules.
- Entity name
TrvProjectExpensePolicyEntity- Public entity name
ProjectExpensePolicy- OData collection
ProjectExpensePolicies- Category
Not set- Module
Project management and accounting- Read-only
No- Data management enabled
Yes- Configuration key
Project- Keys
City, ExpenseCategory, CustomerAccount, StartDate, EndDate, Currency, PerUnit, PolicyType, ProjectID, ProjectContractID, PersonnelNumber, ProjectExpensePolicyWorkerGroup- Staging table
TrvProjectExpensePolicyStaging
Use it in Power BI and Power Platform
- OData URL
https://<environment>/data/ProjectExpensePolicies- Dataverse virtual table
mserp_trvprojectexpensepolicyentity. 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
ProjExpPolicies· rootHcmWorker· OuterJoin toProjExpPolicies· read-only
Fields (18)
| Field and description | Type / EDT / enum | Mandatory | OData / Dataverse | References | Lineage root |
|---|---|---|---|---|---|
AllowableAmountAmount that is allowed for the expense. | RealAmountCur | Yes | Yes | ProjExpPolicies.AllowableAmount | |
CityCity that the policy applies to. | String (60)AddressCity | No | Yes | ProjExpPolicies.City | |
ExpenseCategoryExpense category that the policy applies to. | String (30)TrvCostTypeEDT | Yes | Yes | TrvCostType.CostType | ProjExpPolicies.CostType |
CustomerAccountCustomer account that the policy applies to. | String (20)CustAccount | No | Yes | CustTable.AccountNum | ProjExpPolicies.CustAccount |
EndDateDate and time when the policy ends. | UtcDateTimeTrvUtcDateTime | No | Yes | ProjExpPolicies.EndDate | |
CurrencyCurrency of the policy amounts. | String (3)CurrencyCode | Yes | Yes | Currency.CurrencyCode | ProjExpPolicies.ExchangeCode |
PerUnitUnit that the limit is set per: expense, day or report. | Enum
| No | Yes | ProjExpPolicies.ExpPerUnit | |
MaximumAmountMaximum amount allowed. | RealAmountCur | No | Yes | ProjExpPolicies.MaximumAmount | |
MaximumPercentMaximum percentage allowed. | RealPercent | No | Yes | ProjExpPolicies.MaximumPercent | |
ProjectExpensePolicyWorkerGroupWorker group that the policy applies to. | StringProjExpPolicyGroupId | No | Yes | ProjExpPolicyGroups.GroupId | ProjExpPolicies.PolicyEmplGroupId |
PolicyTypeType of policy: select type, customer or company. | Enum
| Yes | Yes | ProjExpPolicies.PolicyType | |
ProjectIDProject that the policy applies to. | String (20)ProjId | No | Yes | ProjTable.ProjId | ProjExpPolicies.ProjId |
ProjectContractIDProject contract that the policy applies to. | String (20)ProjInvoiceProjId | No | Yes | ProjInvoiceTable.ProjInvoiceProjId | ProjExpPolicies.ProjInvoiceProjId |
ReceiptMinimumAmount above which a receipt is needed. | RealAmountCur | No | Yes | ProjExpPolicies.ReceiptMin | |
ReceiptRequiredYes or no flag showing whether a receipt is required. | Enum
| No | Yes | ProjExpPolicies.ReceiptRequired | |
StartDateDate and time when the policy starts. | UtcDateTimeTrvUtcDateTime | Yes | Yes | ProjExpPolicies.StartDate | |
WorkerWorker that the policy applies to. | Int64ProjWorkerRecId | No | No (private) | HcmWorker.RecId | ProjExpPolicies.Worker |
PersonnelNumberNumber that identifies the worker within the organisation. | String (25)HcmPersonnelNumberId | No | Yes | HcmWorker.PersonnelNumber |
Foreign keys (7)
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.
ExpenseCategory→TrvCostType.CostType(key of TrvCostType)Many ProjExpPolicies records → exactly one TrvCostType record
TrvCostType details: see TrvExpenseCategoryEntity, ProjExpenseCategoryExportEntity
CustomerAccount→CustTable.AccountNum(key of CustTable)Many ProjExpPolicies records → zero or one CustTable record
CustTable details: see CustCustomerV3Entity, CustFoundationExtendedEntity, CustFoundationEntity
Currency→Currency.CurrencyCode(key of Currency)Many ProjExpPolicies records → exactly one Currency record
Currency details: see CurrencyNonISOEntity, DenominationEntity, CashDueAnnouncementJournalEntity
ProjectExpensePolicyWorkerGroup→ProjExpPolicyGroups.GroupId(key of ProjExpPolicyGroups)Many ProjExpPolicies records → zero or one ProjExpPolicyGroups record
ProjExpPolicyGroups details: see TrvProjectExpensePolicyGroupEntity
ProjectID→ProjTable.ProjId(key of ProjTable)Many ProjExpPolicies records → zero or one ProjTable record
ProjTable details: see ProjectEntity, ProjProjectV2Entity, ProjCDSProjectEntity
ProjectContractID→ProjInvoiceTable.ProjInvoiceProjId(key of ProjInvoiceTable)Many ProjExpPolicies records → zero or one ProjInvoiceTable record
ProjInvoiceTable details: see ProjProjectContractHeaderEntity, ProjContractEntity, ProjCDSProjectContractEntity
Worker→HcmWorker.RecId(key of HcmWorker)Many ProjExpPolicies records → zero or one HcmWorker record
HcmWorker details: see TrvExpMobileUserDisplayInfoEntity, BusinessProcessHeaderEntity, HcmInjuryIncidentEntity
Need help with TrvProjectExpensePolicyEntity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.