Trying to run NAV URL from Windows Scheduler

SimonWSimonW 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

Answers

  • ara3nara3n Member Posts: 9,256
    Have you tried it with ntauthentication=0?
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
  • SimonWSimonW Member Posts: 77
    Thanks for the suggestion - but seems to be ignoring it.

    So instead, I added an ID=, logged in once and now it seems ok?

    Simon
  • SimonWSimonW Member Posts: 77
    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
    

    Simon
Sign In or Register to comment.