Schedule Dataport to Run

NavNovice
Member Posts: 2
Is it possible to program a Dataport to run on a time schedule once a day with Navision Financials ver. 2.5?
My dataport exports data to a text file so that an SQL server can grab the file and import it into our web application.
I would love to be able to make these things happen automatically on a daily scheduled basis.
My dataport exports data to a text file so that an SQL server can grab the file and import it into our web application.
I would love to be able to make these things happen automatically on a daily scheduled basis.
0
Comments
-
With the NAS it is not possible. Dataports don't work with the NAS. Actually I am not even sure 2.5 has a NAS.
You have to create a form with property "TimerInterval" filled in.
In the "OnTimer()"-trigger you can put code that once a day after a certain hour, launches the dataport.
The problem is that if in the night you shut down the DB-server for some reason, in the morning you have to start the Navision-client again with that form.
It is also best that you create a user that has only permission to launch that dataport and that can read/insert/delete the tables in needs for the dataport, and nothing more.
In the user-setup, you can give a menu to be used for a certain user. Put in the ID of the form with the "OnTimer()"-function in it.
The last 2 things is for security, because you have to leave a Navision-client running all the time.
Other possibilities without Navision:
1) if your DB is a SQL-DB, your other SQL-server can read the data directly from the Navision-table.
2) you can create an external program and read the data with the help of ODBC and put this program in the Windows scheduler.Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
-
You can use the standard Navision Job Scheduler for this. The only downside is that you will have to have a computer logged into Navision running at the time that you schedule the object to run.0
-
has anyone had any luck running a dataport to run from a codeunit that is set to run from the NAS scheduler?0
-
the NAS can't run Dataports.
So use a xml port, report (with File variable) or codeunit (with file variable) to import / export datas.
RegardsDo you make it right, it works too!0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K 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
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions