Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Dynamics 365 for Finance and Operations Development Cookbook - Fourth Edition

You're reading from  Dynamics 365 for Finance and Operations Development Cookbook - Fourth Edition

Product type Book
Published in Aug 2017
Publisher Packt
ISBN-13 9781786468864
Pages 480 pages
Edition 4th Edition
Languages
Authors (2):
Abhimanyu Singh Abhimanyu Singh
Profile icon Abhimanyu Singh
Deepak Agarwal Deepak Agarwal
Profile icon Deepak Agarwal
View More author details

Table of Contents (18) Chapters

Title Page
Credits
About the Authors
About the Reviewer
www.PacktPub.com
Customer Feedback
Dedication
Preface
1. Processing Data 2. Working with Forms 3. Working with Data in Forms 4. Building Lookups 5. Processing Business Tasks 6. Data Management 7. Integration with Microsoft Office 8. Integration with Power BI 9. Integration with Services 10. Improving Development Efficiency and Performance

Posting a general journal


Journal posting is the next step once the journal has been created. Although most of the time journals are posted from the user interface, it is also possible to perform the same operation from the code.

In this recipe, we will explore how a general journal can be posted from the code. We are going to process the journal created in the previous recipe.

How to do it...

Carry out the following steps in order to complete this recipe:

  1. Navigate to General ledger | Journals | General journal and find an open journal. Create a new journal if none exists. Note the journal's number.

 

  1. In your solution, add a new runnable class named LedgerJournalPost with the following code snippet (replace the 00472 text with the journal's number from the previous step):
        static void LedgerJournalPost(Args _args) 
       { 
          LedgerJournalCheckPost LedgerJournalCheckPost; 
          LedgerJournalTable     LedgerJournalTable; 
 
          LedgerJournalTable = LedgerJournalTable:...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}