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

Notifications

Announcements

No record found.

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
    237,882 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
    237,882 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

Responsible AI policies

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

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
Martin Dráb Profile Picture

Martin Dráb 565 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

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

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 250 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans