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 :
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

I have the same question (0)
  • Jothi Krishnan N Profile Picture
    1,895 on at

    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/

  • RyanSinfield Profile Picture
    121 on at

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

  • Verified answer
    Tim W Profile Picture
    2,925 on at

    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

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

  • RyanSinfield Profile Picture
    121 on at

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

  • Beat Bucher  GP Geek  GPUG All Star Profile Picture
    28,058 Moderator on at

    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.

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 > 🔒一 Microsoft Dynamics GP (Archived)

#1
mtabor Profile Picture

mtabor 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans