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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

Global Events triggered while modifying "Job Planning Line" table and "Purchase Line"

(0) ShareShare
ReportReport
Posted on by 990

Hi All,

I am developing a custom app which needs the global modify trigger to be triggered,

I have a codeunit which subscribes to a GlobalModifyTrigger in the Global Trigger Management codeunit ,now the Job Planning Line or the Purchase Line does not react to the triggers could you help please and explain why on modifying the Trigger is not being called.Other Tables like sales Line,Sales Header do call the proc though

   [EventSubscriber(ObjectType::CodeunitCodeunit::GlobalTriggerManagement, 'OnAfterOnDatabaseModify''', true, true)]
    Procedure OnAfterOnDatabaseModify(RecRef: RecordRef)

Regards,

Indira 

I have the same question (0)
  • Suggested answer
    JAngle Profile Picture
    150 on at

    Have you considered using an event subscriber from the table itself? This way the information in the provided variables is already in context. So no need to get that from the recref. I’d say this pattern is more common amongst the developer’s I work with.

  • Indira88 Profile Picture
    990 on at

    Hi JAngle,

    Thank you for the reply ,I am trying to use a global trigger that should be applicable for all tables ,I can use table specific eventsfor these two but my question rises why is it that the global triggers do not work for these two tables known to me,there may other tables falling into  this I am unaware of.I need this to implement field level security.

    Regards,

    Indira

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,821 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,122 Super User 2026 Season 1

#3
Dhiren Nagar Profile Picture

Dhiren Nagar 959 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans