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:
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.
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áb230,569Most 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.