Quantcast
Channel: NAV Three Tier — mibuso.com
Viewing all articles
Browse latest Browse all 10032

Autoincrement key log primary key doesn't work

$
0
0
Hi everyone,

I have a challenging problem to solve...
I'm trying to log the value of the primary key of any table when a new record is inserted ... it all works well but not with tables that have the autoincrement pk... the reason is that the database insert trigger ( codeunit 1) is fired before the insertion so Nav does not know the value of the pk that will be calculated by sql... this means I'm always logging a pk of zero which is not correct... so any ideas on how to solve this and be able to log the correct pk of any table in Nav with an autoincrement? I cannot operate on single table events it must be generic for any table in NAV..

Hope someone has got the solution I don't have!

Cheers!!!

Viewing all articles
Browse latest Browse all 10032

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>