Events on TableTrigger and Suspend Messages

NAVFuchsNAVFuchs Member Posts: 76
Hi,

when you use events on table trigger e.g. OnBeforeModifyItem and the function in the codeunit uses messages on some circumstances.

Is it possible to Suspend these messages like former developing by using a function SuspendMessage or by using a parameter?

(Dynamics NAV 2017 is used)

Answers

  • Slawek_GuzekSlawek_Guzek Member Posts: 1,690
    edited 2019-01-07
    Try calling ERROR('') in a TRY function

    Otherwise there is no way to 'cancel' messages.
    Slawek Guzek
    Dynamics NAV, MS SQL Server, Wherescape RED;
    PRINCE2 Practitioner - License GR657010572SG
    GDPR Certified Data Protection Officer - PECB License DPCDPO1025070-2018-03
  • NAVFuchsNAVFuchs Member Posts: 76
    This works for me! Thanks
Sign In or Register to comment.