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 :
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,833 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
    238,751 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
    238,751 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

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

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 509 Super User 2026 Season 1

#2
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 375

#3
Adis Profile Picture

Adis 268 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans