Skip to main content

Notifications

Microsoft Dynamics NAV (Archived)

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

Posted on by 435

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. 

*This post is locked for comments

  • NunoC Profile Picture
    NunoC 5 on at
    Re: NAV 2009 R2: Using Web Services to change default status of orders.

    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.

  • Tony Hemy Profile Picture
    Tony Hemy on at
    Re: NAV 2009 R2: Using Web Services to change default status of orders.

    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

  • Jason_AnA Profile Picture
    Jason_AnA 435 on at
    Re: NAV 2009 R2: Using Web Services to change default status of orders.

    Sales

  • Tony Hemy Profile Picture
    Tony Hemy on at
    Re: NAV 2009 R2: Using Web Services to change default status of orders.

    Sales or Purchase?

  • Jason_AnA Profile Picture
    Jason_AnA 435 on at
    Re: NAV 2009 R2: Using Web Services to change default status of orders.

    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?

  • Tony Hemy Profile Picture
    Tony Hemy on at
    Re: NAV 2009 R2: Using Web Services to change default status of orders.

    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

  • Jason_AnA Profile Picture
    Jason_AnA 435 on at
    Re: NAV 2009 R2: Using Web Services to change default status of orders.

    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.

  • Tony Hemy Profile Picture
    Tony Hemy on at
    Re: NAV 2009 R2: Using Web Services to change default status of orders.

    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

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans