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 :
Finance | Project Operations, Human Resources, ...
Suggested Answer

Hookable false, how to add some code ?

(0) ShareShare
ReportReport
Posted on by 596
Hi guys,
 
If some table method such as update(), the Hookable is set to false, how to add some code into it ?
I tried to create CoC but error.
 
Thanks,
I have the same question (0)
  • Suggested answer
    GirishS Profile Picture
    27,827 Moderator on at
    Hi Voltes,
     
    If the method is decorated with hookable(false) then you cannot write pre or post event handler or COC.
     
    Thanks,
    Girish S.
  • Suggested answer
    Martin Dráb Profile Picture
    237,807 Most Valuable Professional on at
    Yes, you're expected to get an error, because the developer explicitly prohibit it by Hookable(false).
     
    What you can do is subscribing to table events, namely OnUpdating and OnUpdated.
  • Voltes Profile Picture
    596 on at
    Hi Martin,
     
    Can I ask a few example for this OnUpdating or OnUpdated ?
    Thanks
  • Martin Dráb Profile Picture
    237,807 Most Valuable Professional on at
    You can easily find examples by yourself. Open DataEventType enum in AOT, expand its elements, right-click either Updating or Updated and click Find All References.

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 > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 664 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 522 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 303 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans