NAV 2009 R2: Using Web Services to change default status of orders.

NAV 2009 R2: Using Web Services to change default status of orders.

This question is not answered

Good Afternoon,

 

I'm using NAV web services to change the default type of an order status to Released. When I try to change it I noticed that I get an error message that states Exception Was Unhandled: The Status Must Be Set to Open.  Is there a way around this? I might be doing this incorrectly.. Thank you in advance. 

Jason Arias

Systems Administrator

Aden + Anais

jarias@adenandanais.com

All Replies
  • Hey Jason,

    Have you tried to release the order manually in NAV to see if it reports a more articulate error? It could be that you are not allowed to release the document as certain conditions are yet to be fulfilled.

    t

  • We are able to change it to release in NAV. Works fine. However when in web services, the errors state it's in read-only mode. Now sure why.. we haven't changed it. When we change it to allow to edit we get certain errors. One of which is the exception was unhandled. I will mention under read-only.

    Jason Arias

    Systems Administrator

    Aden + Anais

    jarias@adenandanais.com

  • Are you trying to change the "Status" field directly within the dataset? You can't do that.. the record has to be passed through the release sales document codeunit. just changing the status directly will not do that for you.

    t

  • Also.. Do you know the proper ID # / Object ID # for the Release Command. I was told it was 5771 but that could be incorrect. Could you verify?

    Jason Arias

    Systems Administrator

    Aden + Anais

    jarias@adenandanais.com

  • Sales or Purchase?

  • Sales

    Jason Arias

    Systems Administrator

    Aden + Anais

    jarias@adenandanais.com

  • Codeunit 414 "Release Sales Document" - must be called with the Sales Header you want to release as a parameter.. you can't just call the CU

    t

  • Hello. I want to be able to change the status order by invoking a web service. Currently the field if read-only, how do i change it? Please help me through the whole process. I need this asap please.