Table
LeaveBankTransaction
Leave and absence bank transaction
Holds leave bank transactions for workers, one line per movement. Each line has a worker, leave type, plan, date, amount and transaction type, such as accrual, request, grant or balance adjustment. It can link to an accrual suspension and a reason code.
- Table name
LeaveBankTransaction- Module
Cross-module and platform- Table group
Miscellaneous- Table type
Regular- Data per company
Yes- Configuration key
None- Primary index
None- Replacement key
None- Key fields
None- Model
Leave
Fields (19)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
AccrualSuspensionThe accrual suspension linked to the transaction. Points to the accrual suspension record. | Int64LeaveAccrualSuspensionRecId | No | LeaveAccrualSuspension.RecId | None |
AmountSigned amount of leave in the transaction. | RealLeaveAmountSigned | No | LeaveBankTransactionV2EntityLeaveBankTransactionEntityPayIntV1LeaveBankTransactionEntity | |
CommentFree-text comment on the transaction. | String (-1)LeaveRequestComment | No | LeaveBankTransactionV2EntityLeaveBankTransactionEntityPayIntV1LeaveBankTransactionEntity | |
CreatedByThe user who created the record. System field. | String (20)CreatedBy | No | None | |
CreatedDateTimeThe date and time when the record was created. System field. | UtcDateTimeCreatedDateTime | No | None | |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
HalfDayDefinitionShows whether the transaction covers no half day, the first half day or the second half day. | EnumLeaveHalfDayDefinition (enum) | No | LeaveBankTransactionV2EntityLeaveBankTransactionEntityPayIntV1LeaveBankTransactionEntity | |
LeavePlanThe leave plan of the transaction. Points to the leave plan record. | Int64LeavePlanRecId | No | LeavePlan.RecId | LeaveBankTransactionV2EntityLeaveBankTransactionEntityPayIntV1LeaveBankTransactionEntity |
LeaveTypeThe leave type of the transaction. Points to the leave type record. | Int64LeaveTypeRecId | Yes | LeaveType.RecId | LeaveBankTransactionV2EntityLeaveBankTransactionEntityPayIntV1LeaveBankTransactionEntityand 3 more |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
ReasonCodeReason for the transaction. Points to the reason code record. | Int64HcmReasonCodeRecId | No | HcmReasonCode.RecId | LeaveBankTransactionV2EntityLeaveBankTransactionEntityPayIntV1LeaveBankTransactionEntity |
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field. | Int64RecId | No | None | |
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field. | IntegerRecVersion | No | None | |
SysRowVersionA system row version number that is used for change tracking. System field. | Int64SysRowVersion | No | None | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None | |
TransactionDateDate of the transaction. | DateLeaveDate | Yes | LeaveBankTransactionV2EntityLeaveBankTransactionEntityPayIntV1LeaveBankTransactionEntityand 4 more | |
TransactionNumberLine number of the transaction. | RealLineNum | No | LeaveBankTransactionV2EntityLeaveBankTransactionEntityPayIntV1LeaveBankTransactionEntityand 1 more | |
TransactionTypeKind of movement, such as accrual, request, grant, adjustment, expiration or buy request. | EnumLeaveTransactionType (enum) | Yes | LeaveBankTransactionV2EntityLeaveBankTransactionEntityPayIntV1LeaveBankTransactionEntityand 1 more | |
WorkerThe worker the transaction belongs to. Points to the worker record. | Int64HcmWorkerRecId | Yes | HcmWorker.RecId | LeaveBankTransactionV2EntityLeaveBankTransactionEntityPayIntV1LeaveBankTransactionEntityand 2 more |
Indexes (3)
WorkerLeaveTypeTrxTypeDateIdxWorker,LeaveType,TransactionType,TransactionDate,TransactionNumberUnique, alternate key.
TransactionNumberNot unique.
WorkerLeaveTypeTrxDateDataAreaIdIdxWorker,LeaveType,TransactionDate,DataAreaIdNot unique.
Relations (5)
Each relation joins LeaveBankTransaction to another table on the fields shown.
LeaveType→LeaveTypeJoin on
LeaveType = LeaveType.RecIdMany LeaveBankTransaction records → exactly one LeaveType record
HcmWorker→HcmWorkerJoin on
Worker = HcmWorker.RecIdMany LeaveBankTransaction records → exactly one HcmWorker record
LeavePlan→LeavePlanJoin on
LeavePlan = LeavePlan.RecIdMany LeaveBankTransaction records → zero or one LeavePlan record
LeaveAccrualSuspension→LeaveAccrualSuspensionJoin on
AccrualSuspension = LeaveAccrualSuspension.RecIdMany LeaveBankTransaction records → zero or one LeaveAccrualSuspension record
ReasonCode→HcmReasonCodeJoin on
ReasonCode = HcmReasonCode.RecIdMany LeaveBankTransaction records → zero or one HcmReasonCode record
Get this data out
Tables are not exposed directly. These public entities read from LeaveBankTransaction; use one of them in Power BI, Power Platform or a data management project.
LeaveBankTransactionV2Entity· 10 fields from this tableLeaveBankTransactionEntity· 10 fields from this tablePayIntV1LeaveBankTransactionEntity· 10 fields from this tableLeaveBankTransactionAuditTrailEntity· 3 fields from this tableEssLeaveTimeOffDateEntity· 3 fields from this tableLeaveWorkerTimeOffEntity· 2 fields from this tableMssLeaveTimeOffDateEntity· 3 fields from this table
Need help with LeaveBankTransaction in a report, an integration or a migration? Talk to Dr Dynamics.