Calling a function from outside of NAV
Storm
Member Posts: 27
Hi
We have created an automatic backup of our Live Navision (5.0) and automatic Restore in our Test system. I have created a codeunit that (among other things) renames the company names and changes some other data.
This codeunit should be run after the Backup has been restored in our Test system and that is why I need the codeunit to be triggered when this restore is finished but I have no idea how to do this :-)
The Backup and restore is done through an SQL-script and it is of course important that it is finished before running the codeunit, so can you enter some kind of Windows command line to trigger a specific codeunit? or is there another way to do it without any human interaction?
Thanks in advance for the help ;-)
We have created an automatic backup of our Live Navision (5.0) and automatic Restore in our Test system. I have created a codeunit that (among other things) renames the company names and changes some other data.
This codeunit should be run after the Backup has been restored in our Test system and that is why I need the codeunit to be triggered when this restore is finished but I have no idea how to do this :-)
The Backup and restore is done through an SQL-script and it is of course important that it is finished before running the codeunit, so can you enter some kind of Windows command line to trigger a specific codeunit? or is there another way to do it without any human interaction?
Thanks in advance for the help ;-)
0
Comments
-
There is no way how to start some Business logic in NAV without using NAS or NAV client. For me it looks like best will be to run NAS with appropriate parameter, which will fire your function in the NASHandler function of the CU1. NAS can be started from command prompt or as system service.0
-
you can use webservice with 2009 and use tsql to connect webservice and run business logic.0
Categories
- All Categories
- 75 General
- 75 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 610 NAV Courses, Exams & Certification
- 1.9K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 250 Dynamics CRM
- 102 Dynamics GP
- 6 Dynamics SL
- 1.5K Other
- 991 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 28 Design Patterns (General & Best Practices)
- Architectural Patterns
- 9 Design Patterns
- 4 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1K General Chat
- 1.6K Website
- 77 Testing
- 1.2K Download section
- 23 How Tos section
- 249 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions

