Options

get shipment line from WS

sbillysbilly Member Posts: 231
edited 2011-05-23 in NAV Three Tier
Hi all,
is there any solution to do get shipment line when creating an Invoice from web services??

Comments

  • Options
    ara3nara3n Member Posts: 9,255
    Sure. Create a codeunit with a function that would return the line no. The other option is publish the warehouse shipment line page and filter it on sales order and line no.
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
  • Options
    sbillysbilly Member Posts: 231
    Please can u explain more, my situation is : I create a new Invoice, after settig the sell to customer no , I do Functions-> Get Shipment Lines, then I select the line and I press OK. When I try to do it in WS i get the call back error
  • Options
    ara3nara3n Member Posts: 9,255
    I just reread the issue. In Std nav you cannot create whse documents from invoice. You need to create a sales order.

    The call back error means that you are running the report modal. You need to change code for the report that creates the warehouse document to run as
    report.saveaspdf
    
    instead.
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
Sign In or Register to comment.