web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)
Suggested Answer

event subscriber for OnAfterPostItemJnlLine

(0) ShareShare
ReportReport
Posted on by 574

Hi, after posting a production order output, I want to create 2 additional item entries.

I am catching event OnAfterPostingItemJnlLine, but I see that my extra aditional item journal lines get posted (in item ledger entry) BEFORE the original item entry for production order output.

What event should I subscribe if I want to post two item journla lines AFTER standard production order posts an output?

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    I Gusti Made Ari Profile Picture
    3,600 on at

    The event is correct but you need to add some condition  , add below additional condition on you subscriber function :

    IF ItemJnlLine."Entry Type" = ItemJnlLine."Entry Type"::Output THEN

      //create additional entries

  • AntonioTorre Profile Picture
    574 on at

    Thanks for your answer but I have used that condition before posting here and the result is the same.

  • Suggested answer
    Teddy Herryanto (That NAV Guy) Profile Picture
    14,284 Super User 2025 Season 2 on at

    What about OnAfterInsertItemLedgEntry ?

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics NAV (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans