Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX (Archived)

Where I would add Post handler subscription method "Sales order to Tax Invoice generation"?

Posted on by 15

I have try add post handler subscription method for "Sales order to Tax Invoice generation". My question is "Which table going to insert/update during this action?"

*This post is locked for comments

  • nmaenpaa Profile Picture
    nmaenpaa 101,156 on at
    RE: Where I would add Post handler subscription method "Sales order to Tax Invoice generation"?

    I don't think that the process creates new customers (CustTable)? Are you sure you are on the correct form where you can see the Tax Invoices?

  • Lana Fernando Profile Picture
    Lana Fernando 15 on at
    RE: Where I would add Post handler subscription method "Sales order to Tax Invoice generation"?

    I have handle the  "custTable" form insert and update through subscription of "Pre/Post" handler, that could be added to the  "cutTable" table insert and update method.  But "Sales order to Tax Invoice generation" process run in batch process so difficult to handle. It mean need update existing code of "SalesFormLetter".

  • Suggested answer
    nmaenpaa Profile Picture
    nmaenpaa 101,156 on at
    RE: Where I would add Post handler subscription method "Sales order to Tax Invoice generation"?

    Go to Tools - Options - Development and uncheck "Execute business operations in CIL". Then the debugger should kick in. After debugging, set the checkbox back.

  • Lana Fernando Profile Picture
    Lana Fernando 15 on at
    RE: Where I would add Post handler subscription method "Sales order to Tax Invoice generation"?

    Yes, I have debugging and add breakpoints checked in "custInvoiceTrans, custInvoiceTable". But It's couldn't trigger!.

  • Suggested answer
    nmaenpaa Profile Picture
    nmaenpaa 101,156 on at
    RE: Where I would add Post handler subscription method "Sales order to Tax Invoice generation"?

    There is a general process to find answer to all such questions: debugging.

    Where do you see the Tax invoice that is created (I suppose) from this process? Check out the name of that form, and the name of the data source table. Then put breakpoint in the insert method of that table, and run "Sales order to Tax Invoice generation" process again. Now you will see the call stack in debugger, and perhaps can find a place for your event handler.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans