Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV (Archived)

EVENT Subscriber Recursive

Posted on by 215

Hello everyone.

I am working on some events subscriber using AL.

Example is  a drop ship SO/PO scenario Header and Line.

When a dimension is changed on the SO, I want it to also change the PO and PO lines and vice versa.

I have created the event subscribers on "BeforeValidateEvent" of the dimension field on the Sales header, sales line, Po header and poline but they keep calling each other when the modify statement is called.

A while back I read smth about how to check if an event subscriber has already been called and this eliminates recursive calls, but I can't figure out how to do it.
I can't find that article any more .

Any ideas ?

*This post is locked for comments

  • Verified answer
    Armela Kamenica Profile Picture
    Armela Kamenica 215 on at
    RE: EVENT Subscriber Recursive

    Found my solution for anyone that runs into this issue

    www.kauffmann.nl/.../table-trigger-events-in-dynamics-365-business-central

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