Access NAV Objects

BlackcatBlackcat Member Posts: 28
Hey Guys,
I've go a question I hope you can help me...
Is it possible to access NAV objects from an external system ?
For Example, to open a form in NAV from my own c# programm?
I've searched for a while but i can't find an answer..

thx blackcat

Comments

  • ara3nara3n Member Posts: 9,256
    Do you want to open the form by itself or within your app?

    If you want to open by itself, then from you app you can run the following command

    [url=dynamicsnav://localhost:7046/DynamicsNAV/KRONUS2009SP1/runpage?page=42&mode=Edit]dynamicsnav://localhost:7046/DynamicsNA ... &mode=Edit[/url]



    If you want to see the form within your app, you can't, You can get the data that is displayed on a form and display it in your C# app.
    This method requires using webservice. In NAV you publish the Page (form).
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
  • BlackcatBlackcat Member Posts: 28
    Hey,
    i want to open the form itself..
    i want to open the contact card in Nav with a specific record...

    i use nav 5.1

    Correct me if I'm wrong... but your example is for nav2009 right?
  • ara3nara3n Member Posts: 9,256
    yes my example is for 2009.

    For 5.0 you can find how the URL should look like by going the Contact Card. and Select File->Sendto ->Desktop.

    You'll see a shortcut on desktop and you can use that example to see how the URL should look like.

    [url=navision://client/run?target=Form%205050%26view=SORTING(Field1]navision://client/run?target=Form%20505 ... ING(Field1[/url])%26position=Field1=0(CT000005)%26servertype=MSSQL
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
  • garakgarak Member Posts: 3,263
    viewtopic.php?f=5&t=9247

    OK, it's a codeexample for C/AL but it's is easy to transfer to C# or a other language.
    I belive it would be the same principle like aran's example

    Regards
    Do you make it right, it works too!
  • BlackcatBlackcat Member Posts: 28
    Ah coool
    Thanks for the answers :D
    :mrgreen:
Sign In or Register to comment.