Table
CurrencyLedgerGainLossAccount
Currency ledger revaluation account
Links a currency and a ledger to the accounts used for each type of gain, loss or offset. Each row is identified by currency, ledger and account type. It points to the Currency, Ledger and Dimension code combination tables.
- Table name
CurrencyLedgerGainLossAccount- Module
Currencies and exchange rates- Table group
Group- Table type
Regular- Data per company
No- Configuration key
None- Primary index
None- Replacement key
CurrencyLedgerGainLossAccountIdx- Key fields
CurrencyCode, Ledger, AccountType- Model
Ledger
Fields (9)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
CurrencyCodeCurrency code. It points to a record in the Currency table. | String (3)CurrencyCode | Yes | Currency.CurrencyCode | CurrencyRevaluationAccountV2EntityCurrencyRevaluationAccountEntity |
LedgerThe ledger this setting applies to. It points to a Ledger record. | Int64LedgerRecId | Yes | Ledger.RecId | CurrencyRevaluationAccountV2EntityCurrencyRevaluationAccountEntity |
AccountTypeKind of gain, loss or offset that the account is for, such as realized, unrealized or conversion. | EnumCurrencyGainLossAccountType (enum) | Yes | CurrencyRevaluationAccountV2EntityCurrencyRevaluationAccountEntity | |
LedgerDimensionThe main account and dimension combination chosen for this account type. It points to a Dimension code combination record. | Int64LedgerDimensionDefaultAccount | Yes | DimensionAttributeValueCombination.RecId | CurrencyRevaluationAccountV2EntityCurrencyRevaluationAccountEntity |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
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 |
Indexes (1)
CurrencyLedgerGainLossAccountIdxReplacement keyCurrencyCode,Ledger,AccountTypeUnique, alternate key.
Relations (3)
Each relation joins CurrencyLedgerGainLossAccount to another table on the fields shown.
Currency→CurrencyJoin on
CurrencyCode = Currency.CurrencyCodeMany CurrencyLedgerGainLossAccount records → zero or one Currency record
Ledger→LedgerJoin on
Ledger = Ledger.RecIdMany CurrencyLedgerGainLossAccount records → zero or one Ledger record
LedgerDimension→DimensionAttributeValueCombinationJoin on
LedgerDimension = DimensionAttributeValueCombination.RecIdMany CurrencyLedgerGainLossAccount records → zero or one DimensionAttributeValueCombination record
Get this data out
Tables are not exposed directly. These public entities read from CurrencyLedgerGainLossAccount; use one of them in Power BI, Power Platform or a data management project.
CurrencyRevaluationAccountV2Entity· 4 fields from this tableCurrencyRevaluationAccountEntity· 4 fields from this table
Need help with CurrencyLedgerGainLossAccount in a report, an integration or a migration? Talk to Dr Dynamics.