Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Microsoft Dynamics GP (Archived)

Listening for Dynamics GP events?

(1) ShareShare
ReportReport
Posted on by 121

Is there a best practice way to listen for certain events within Dynamics GP?

For instance, I'd like to run a procedure or script when a user creates/updates/deletes an Item Class. I am aware I could achieve this using a trigger on the IV40400 table, but is there a better method that I can use to implement a callback function when the user hits the "Save" or "Delete" buttons? 

Another circumstance might be a SOP auditing system that would log the user, time and date a change to a SOP transaction was made.

*This post is locked for comments

  • Beat Bucher  GP Geek  GPUG All Star Profile Picture
    28,058 Moderator on at
    RE: Listening for Dynamics GP events?

    Hi Ryan,

    There is even a more simply way to build custom triggers for end-users, all within the GP GUI.. by using GP Power Tools from Winthrop DC, formerly the SDT (Support Debugging Tool). Of course, it's not free, but might offer much more than the VSTools plugin.

  • RyanSinfield Profile Picture
    121 on at
    RE: Listening for Dynamics GP events?

    Never mind, I found the VSToolsSDK.exe add-on in the /Tools/SDK folder of the installation media.

  • RyanSinfield Profile Picture
    121 on at
    RE: Listening for Dynamics GP events?

    Thanks Tim, the VSTools add-on looks like it might be perfect. I can't find out where I could download it from though?

  • Verified answer
    Tim W Profile Picture
    2,925 on at
    RE: Listening for Dynamics GP events?

    Best practice probably depends on the language you are developing in.

    I've done similar many times from within GP with some pretty simple Dexterity code.  If you are not developing in that language you can use the VSTools add-on for GP to write logic to listen on business logic events and respond to them with C# or VB.Net.  It's a little clunky comparatively to coding in the native language but would work for what you describe if you want to trigger off events in the UI rather than from the DB.

    https://msdn.microsoft.com/en-us/library/cc543651.aspx

     

  • RyanSinfield Profile Picture
    121 on at
    RE: Listening for Dynamics GP events?

    That's not an answer to my question, more of an advert for some software that covers one of the examples.

  • Jothi Krishnan N Profile Picture
    1,877 on at
    RE: Listening for Dynamics GP events?

    You can purchase Audit Trail module from Merit Solutions for complete auditing of all the modules. For others, not sure but you may want to explore GP Power tools.

    http://www.meritsolutions.com/

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

Jainam Kothari – Community Spotlight

We are honored to recognize Jainam Kothari as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard >

Featured topics

Product updates

Dynamics 365 release plans