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

Convert Call stack to readable format in D365FO X++

//Input --container _xppCallStack = xSession::xppCallStack();  Public static str POL_formatXppCallStack(container _xppCallStack, int _skipFr...