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

Copy Markup charges while posting purchase invoice using X++

 Copy Markup charges while posting purchase invoice using X++ Class: Important: Code logic is just for Reference.  New class => Duplicate...