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 descriptionType / EDT / enumMandatoryReferencesIn public entities
CurrencyCodeCurrency code. It points to a record in the Currency table.String (3)
CurrencyCode
YesCurrency.CurrencyCodeCurrencyRevaluationAccountV2EntityCurrencyRevaluationAccountEntity
LedgerThe ledger this setting applies to. It points to a Ledger record.Int64
LedgerRecId
YesLedger.RecIdCurrencyRevaluationAccountV2EntityCurrencyRevaluationAccountEntity
AccountTypeKind of gain, loss or offset that the account is for, such as realized, unrealized or conversion.Enum
CurrencyGainLossAccountType (enum)
YesCurrencyRevaluationAccountV2EntityCurrencyRevaluationAccountEntity
LedgerDimensionThe main account and dimension combination chosen for this account type. It points to a Dimension code combination record.Int64
LedgerDimensionDefaultAccount
YesDimensionAttributeValueCombination.RecIdCurrencyRevaluationAccountV2EntityCurrencyRevaluationAccountEntity
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field.Int64
RecId
NoNone
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field.Integer
RecVersion
NoNone
SysRowVersionA system row version number that is used for change tracking. System field.Int64
SysRowVersion
NoNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone

Indexes (1)

Relations (3)

Each relation joins CurrencyLedgerGainLossAccount to another table on the fields shown.

  • Currency → Currency

    Join on CurrencyCode = Currency.CurrencyCode

    Many CurrencyLedgerGainLossAccount records → zero or one Currency record

  • Ledger → Ledger

    Join on Ledger = Ledger.RecId

    Many CurrencyLedgerGainLossAccount records → zero or one Ledger record

  • LedgerDimension → DimensionAttributeValueCombination

    Join on LedgerDimension = DimensionAttributeValueCombination.RecId

    Many 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.

Need help with CurrencyLedgerGainLossAccount in a report, an integration or a migration? Talk to Dr Dynamics.

Email sales@drdynamics.co.uk