web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested answer

Dynamics AX 2012: Creating or finding LedgerDimension on Journal Line Based on Selected dimension

(1) ShareShare
ReportReport
Posted on by 26

Hello everyone,

 

I developed a form in Dynamics AX 2012. This form has 11 financial dimension fields, and I am using lookup to select Department, Division, and Employee.

 

My goal is: when I click a button, I want to create a dimension based on the selected 3 dimension values and the MainAccount of the row, and then assign this dimension to the LedgerDimension field on a journal line.

 

I have successfully created the journal, but I am struggling with how to correctly create the dimension and assign it to the journal line.

 

My question: How can I create a dimension RecId using these 3 dimensions and MainAccount, and assign it to the LedgerDimension of a journal line?

 

Has anyone done a similar development before or can share a sample X++ code?

Categories:
I have the same question (0)
  • Waed Ayyad Profile Picture
    8,852 Super User 2025 Season 2 on at
    Dynamics AX 2012: Creating or finding LedgerDimension on Journal Line Based on Selected dimension
    Hi,
     
    Do you still need help? Does AxdDimensionUtil allow you to get Ledger Dimension?
     
    Check this link it maybe helps you :
     
     
     
    Thanks,
    Waed Ayyad 
     
  • HY-12030737-0 Profile Picture
    26 on at
    Dynamics AX 2012: Creating or finding LedgerDimension on Journal Line Based on Selected dimension
    Thanks for the answer,
     
    But the LedgerDimensionFacade class doesn't exist in Dynamics AX.
     
    I solved this by using the AxdDimensionUtil class. I sent my parameters as a container in this class and was able to print the dimension value in the account statement section of the journal voucher.
  • Suggested answer
    Waed Ayyad Profile Picture
    8,852 Super User 2025 Season 2 on at
    Dynamics AX 2012: Creating or finding LedgerDimension on Journal Line Based on Selected dimension
     
    Check the following blog: 
     
     

    Thanks,

    Waed Ayyad

    If this helped, please mark it as "Verified" for others facing the same issue

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Sohaib Cheema Profile Picture

Sohaib Cheema 756 User Group Leader

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 629 Super User 2025 Season 2

#3
Martin Dráb Profile Picture

Martin Dráb 514 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans