Friday, October 5, 2018

Get Method parameters in Event Handler class Dynamics 365 FO

/// <summary>
    /// Event handler for initFromLedgerPostingTransaction method
    /// </summary>
    /// <param name="args"></param>
    [PostHandlerFor(classStr(LedgerVoucherTransObject), methodStr(LedgerVoucherTransObject, initFromLedgerPostingTransaction))]
    public static void LedgerVoucherTransObject_Post_initFromLedgerPostingTransaction(XppPrePostArgs args)
    {
        LedgerPostingTransactionTmp     _ledgerPostingTransaction = args.getArg(identifierStr(_ledgerPostingTransaction));
    }

No comments:

Post a Comment

Search hierarchy for a match (TableALLGroup) X++

  Table1 ppt;  select firstonly ppt  order ItemCode, ItemRelation, AccountCode, AccountRelation where      (ppt.ItemCode == TableGroupAll::T...