Skip to main content

Notifications

Microsoft Dynamics GP (Archived)

Triggers on Vendor/Customer MSTR & GP2010`

Posted on by Microsoft Employee

I converted our GP9 to GP2010 over the weekend and MUCH to my dismay, found out Microsoft got rid of my custom triggers that we've had on Vend/Cust MSTR tables since version 6!!!

I have a master list of customers and vendors that's shared between (now) 42 companies and the triggers inserted them into each database. It's the PM00200 and PM00300, and RM00101, 102 and 103. The way they were coded, the trigger itself did the insert (ie.. insert into <Co>..RM00101(..) select ... from inserted;)

In talking with our partner, they suggested moving the code to a custom database (which I already have procs there) and having the trigger on the 'MASTER' company invoke the proc in custom.

OK - so I did it, but now when I go to save off the vendor screen it tells me a "cursor already exists" and names the cursor. The cursor is in the custom database and loops thru SY1500 so the insert goes to all the companies. The procs look fine to me, and I've run the sql generated just to see if the syntax was fine, which it is.

Any clues? This doesn't seem to be rocket science.

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    Re: Triggers on Vendor/Customer MSTR & GP2010`

    If your triggers are hard to manage, there is always the Master records triggers in the PSTL tools library.  They can be used to sync Customers and Vendors across GP companies.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    Re: Triggers on Vendor/Customer MSTR & GP2010`

    Found out what was happening: In programming the triggers, I ran in the test company. Those triggers weren't disabled and so I got the "trigger firing the trigger" thing.

    Sorry to be a bother.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans