As with most of the modules in Dynamics 365 for Finance and Operations, the Project management and accounting
module contain several journals, such as hour
, expense
, fee
, and item
. Although they are similar to the general journal
, they provide a more convenient user interface to work with projects and contain some module-specific features.
In this recipe, we will create and post a project journal from the code. We will process an hour
journal, holding a registered employee's time.
Carry out the following steps in order to complete this recipe:
- Create a new project
ProcessProjectJournal
, and assign our custom model to it. - Create a new class named
ProjJournalCreate
with the following code snippet (replace the input values in the code to match your data):
class ProjJournalCreate { public static void Main(Args _args) { ProjJournalTable jourTable; ProjJournalTrans jourTrans; ...