I want to run a codeunit automatically in nav2009
I want a codeunit to run automatically at certain time intervals eve开发者_JS百科ryday or once every week.is there any procedure in nav to achieve that?i preferably would not like to run or start nav(from the program files) for that but without starting nav.
You can use the NAS (Nav Application Server) to achieve this.
I believe in order to set the job up you'll need to fire up the 2009 Classic Client (Rather than the RTC)
You should find the Job Queue in 'Administration' > 'Job Queue'
Once you've defined the job you wish to set up in there configure the NAS accordingly.
You can use the below to install the NAS:
nassql.exe appservername=[YourServiceName],
NETTYPE=TCP,
servername=[YourSqlServer],
database=[SqlDatabaseName],
company="[NavisionCompanyName]",
nettype=tcp,
startupparameter=”[StartUpParam]”,
objectcache=40000,
installasservice
Hope this helps.
精彩评论