How call Navision Report in web services through parameter

marvindmarvind Member Posts: 25
edited 2011-06-07 in NAV Three Tier
Hi All,

I have gone through the link
http://blogs.msdn.com/b/nav/archive/200 ... rvice.aspx
for calling the Navision reports in Web Service Appllication.
But i found the parameter passed for the report is passed through Navision.If i want call the Navision Invoice Report, how should i pass the order no. as a parameter to the code unit and then it generate the report and will store it in pdf file.



Thanks,
Regards,
Arvind

Comments

  • stiastastiasta Member Posts: 106
    marvind wrote:
    Hi All,

    I have gone through the link
    http://blogs.msdn.com/b/nav/archive/200 ... rvice.aspx
    for calling the Navision reports in Web Service Appllication.
    But i found the parameter passed for the report is passed through Navision.If i want call the Navision Invoice Report, how should i pass the order no. as a parameter to the code unit and then it generate the report and will store it in pdf file.



    Thanks,
    Regards,
    Arvind
    The web service consumer is able to pass any parameters needed from the code unit, that is published.

    For example. You have a code unit with a function, myFunction, that has a parameter, myParameter (Text, 50).
    Then you can consume this in for example C# with just calling the method from the class
    CodeUnitService service;
    service.myFunction("any text passed to myParameter");

    If the string that is passed is larger than 50, navision will throw an exception.

    Hope this made it a bit more clear...
Sign In or Register to comment.