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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

X++ code to create & post General Journal According to the latest version

(2) ShareShare
ReportReport
Posted on by 12
Hello,
 
Please can someone help me with the code to create & post general journal using X++ with the latest version, old answered question's solutions do not work for me as it throws error at LedgerJournalTable itself.
 
Thank you
 
 
I am trying to use the solution provided in this thread:
 
 
//



 
I have the same question (0)
  • Martin Dráb Profile Picture
    238,782 Most Valuable Professional on at
    Please show us your code, tell us what the error message says and where exactly it's thrown.
  • Community member Profile Picture
    12 on at
    Hello Martin,
     
    Sure, i have updated my approach in the main question, and getting "The name LedgerJournalTable does not denote a class, a table or and extended data type", actually i am new to this environment, can you please point me to any documentation for the same? Any help will be appreciated.
     
    Thank you
  • Verified answer
    Martin Dráb Profile Picture
    238,782 Most Valuable Professional on at
    You're trying to an object (a table) called LedgerJournalTable. If you filter Application Explorer by ^LedgerJournalTable$, you'll find that it exists, therefore that's not the problem. What happens is that the table isn't visible to your code. Notice that the entry in Application Explorer looks like this: LedgerJournalTable [Application Suite]. The latter part, Application Suite, denotes the model containing this table.
     
    Now go to Dynamics 365 > Model management > Update model parameters, select your model and click Next. Tick the checkbox next to Application Suite suite model, click Next a few more times to confirm the dialog and then build your model again.
  • Community member Profile Picture
    12 on at
    Hello Martin,
     
    Sir you are amazing, thank you so much.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

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

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 514 Super User 2026 Season 1

#2
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 390

#3
Adis Profile Picture

Adis 266 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans