AX / D365FO – MERGING A LEDGER DIMENSION WITH A DEFAULT DIMENSION in AX2012 – X++

This example shows how to merge a ledger dimension coming from one place with a default dimension from another place.

This could be the ledger dimension in a ledger journal line we need combined with a default dimension from customer.

Follow this code to reach the goal :


myCombinedDimension = DimensionDefaultingService::ServiceCreateLedgerDimension(ledgerJournalTrans.LedgerDimension, custTable.DefaultDimension));

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s