send a parameters from outside of Navision

Oneway
Oneway Member Posts: 53
Probably this has been asked before frequently, but could someone point me into the right direction please?

How can I send a parameters from outside of Navision then run a codeunit?

Comments

  • ara3n
    ara3n Member Posts: 9,258
    Hello Oneway.
    A simple way to do this. To create a table in navision. insert your records into this table. Have NAS setup to monitor the table and run your codeunit.
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
  • Oneway
    Oneway Member Posts: 53
    Sorry! I may not express very clearly.

    what i want to do is key in a code from web then send this code to the navision and let navision to validate it send the message back to the web wether it correct or not.

    eg. using a PDA to log on a web then I key in an item No. then the system back the information to me it's a navision item or not.

    do you guys have any idea to do this?
  • ara3n
    ara3n Member Posts: 9,258
    I see you need to use MS message queue. Send xml documents back and forth. take a look at how commerce portal does it.
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
  • kine
    kine Member Posts: 12,562
    May be good start is this document:
    http://www.mibuso.com/dlinfo.asp?FileID=599

    You will learn how to create webservice and exchange data between NAV and external application through webservices. One good thing is that when error in NAV is called (for example during validation etc.) this error is returned back to the caller application and you can show the user exactly same error text like you will get in NAV. The document includes the example code for NAV and VS2005.
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.