Trying to run NAV URL from Windows Scheduler

SimonW
Member Posts: 77
I've been having an issue when trying to run a codeunit from a NAS - part of it's job is to generate and email a PDF. In the test environment this was fine, but in live it failed. It's some sort of permission issue but there are no errors logged and it's been difficult to track the issue down.
To help try and establish where the problem is I thought I would run NAV from the Windows Scheduler.
Here's my test script which is almost right -
set wshshell = wscript.createobject("WScript.Shell")
WshShell.run "navision://client/run?database=C:\Dynamics%20NAV%20Clients\NAV%202009%20CTP4%20classic\database.fdb&company=Blank&target=Form%2050000&servertype=NAVISION&ntauthentication=1"
The one issue is that it keeps prompting for a database user rather than using window authentication.
Any suggestions why it doesn't work?
Thanks
Simon
To help try and establish where the problem is I thought I would run NAV from the Windows Scheduler.
Here's my test script which is almost right -
set wshshell = wscript.createobject("WScript.Shell")
WshShell.run "navision://client/run?database=C:\Dynamics%20NAV%20Clients\NAV%202009%20CTP4%20classic\database.fdb&company=Blank&target=Form%2050000&servertype=NAVISION&ntauthentication=1"
The one issue is that it keeps prompting for a database user rather than using window authentication.
Any suggestions why it doesn't work?
Thanks
Simon
0
Answers
-
Have you tried it with ntauthentication=0?0
-
Thanks for the suggestion - but seems to be ignoring it.
So instead, I added an ID=, logged in once and now it seems ok?
Simon0 -
In case anyone is interested, here's the blog where I found out how to do this --
http://santoshkmrsingh.blogspot.com/2007/12/creating-navision-shortcuts.html
Simon0
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