Create dimension for bank account in x++

 If you want to create the dimension in the table DimensionAttributeValueCombination for the Bank AccountId, you simply write the line below,


LedgerDynamicAccountHelper::getDynamicAccountFromAccountNumber(accountId.text(), LedgerJournalACType::Bank);


The new record is created in the DimensionAttributeValueCombination table.


Thanks.

Comments

Popular posts from this blog

Create custom workflow in D365 X++

Convert amount from one currency to another currency using X++

How to Create Extended Data Types (EDTs) in Finance and Operations of Dynamics 365 -- F&O Customization Part 2