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

Notifications

Announcements

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 980

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)
  • Indira88 Profile Picture
    980 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

  • Suggested answer
    JAngle Profile Picture
    137 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.

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

News and Announcements

Season of Giving Solutions is Here!

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 > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,630

#2
Khushbu Rajvi. Profile Picture

Khushbu Rajvi. 926 Super User 2025 Season 2

#3
Dhiren Nagar Profile Picture

Dhiren Nagar 682

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans