Merging a ledger dimension with a default dimension

I sometimes end up having 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.

It is pretty easy to do using the out-of-the-box classes in AX 2012. Here is a quick example:

myCombinedDimension = DimensionDefaultingService::ServiceCreateLedgerDimension(myLedgerDimension, myDefaultDimension);

That’s it! 🙂

Advertisements

One thought on “Merging a ledger dimension with a default dimension

  1. Thank you Soren,
    The finding is really helpfull, its saves a lot of mine time.
    Thank you once again.

    Pranav Gupta

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 )

Google+ photo

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

Connecting to %s