Thursday, June 12, 2014

Trigger won't register in Dynamics GP

Problem
In Startup i'm checking if multicurrency is registered:
if 'Module Registered'[MCUR] of globals then
{register triggers}
end if;

but it is never registering the triggers, even though MC is registered!

Solution
Apparently the Module Registered global field doesn't get populated before the login takes place. This means the conditional above is never going to succeed, thus resulting in the trigger registration never getting hit.

Instead of putting the check here, put it in the trigger procedures themselves. 

No comments:

Post a Comment

There was an error in this gadget