Posts

Showing posts from July, 2022

Getting Module Info based on MenuItem in D365

[FormEventHandler(formStr(LedgerJournalTable), FormEventType::Initialized)] public static void LedgerJournalTable_OnInitialized(xFormRun sender, FormEventArgs e)       {                     FormRun formRun = sender;                 if (formRun.args().menuItemName() == "LedgerJournalTable9")             {                            Info("AccountPayable");              }            if (formRun.args().menuItemName() == "LedgerJournalTable_CustPaym")         {                            Info("AccountReceible");              }    ...