Skip to main content

Notifications

Announcements

No record found.

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:
 
 
//



 
  • Community member Profile Picture
    Community member 12 on at
    X++ code to create & post General Journal According to the latest version
    Hello Martin,
     
    Sir you are amazing, thank you so much.
  • Verified answer
    Martin Dráb Profile Picture
    Martin Dráb 230,569 Most Valuable Professional on at
    X++ code to create & post General Journal According to the latest version
    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
    Community member 12 on at
    X++ code to create & post General Journal According to the latest version
    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
  • Martin Dráb Profile Picture
    Martin Dráb 230,569 Most Valuable Professional on at
    X++ code to create & post General Journal According to the latest version
    Please show us your code, tell us what the error message says and where exactly it's thrown.

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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey Pt 2

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,883 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,569 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans