Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

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

  • Suggested answer
    Teddy Herryanto (That NAV Guy) Profile Picture
    13,740 Moderator on at
    RE: event subscriber for OnAfterPostItemJnlLine

    What about OnAfterInsertItemLedgEntry ?

  • AntonioTorre Profile Picture
    574 on at
    RE: event subscriber for OnAfterPostItemJnlLine

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

  • Suggested answer
    I Gusti Made Ari Profile Picture
    3,594 on at
    RE: event subscriber for OnAfterPostItemJnlLine

    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

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

Ramesh Kumar – Community Spotlight

We are honored to recognize Ramesh Kumar as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > 🔒一 Microsoft Dynamics NAV (Archived)

#1
Community Member Profile Picture

Community Member 2

#2
EH-09052238-0 Profile Picture

EH-09052238-0 1

#2
Sohail Ahmed Profile Picture

Sohail Ahmed 1

Featured topics

Product updates

Dynamics 365 release plans