web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

Web Service to Archive Sales Orders

(0) ShareShare
ReportReport
Posted on by

Hello, I'm tring to find the page that can expose a web service capable of archive sales orders. The same operation you can do in NAV with the button "Archive". I've tried with pages 42 and 48 but there are no exported methods to do it. Please some one can give some good information on it?

my best regards,

Gianmaria

*This post is locked for comments

I have the same question (0)
  • Verified answer
    geordie Profile Picture
    on at
    RE: Web Service to Archive Sales Orders

    Sorry for cross-posting but could be useful to someone else in the future :-)

    It's not possible to directly use codeunit ArchiveManagement as webservice since the functions defined accept a record variable, it's necessary to create a new wrapping codeunit to receive document type and document no. as separated parameters and call ArchiveSalesDocument function.

  • Community Member Profile Picture
    on at
    RE: Web Service to Archive Sales Orders

    Hello,

    a nice idea.. I've tried to access this code unit but seems i don't have permission. I work a lot with other web services using pages and everything goes ok,  but when i try to use code units and expose as web service. Visual studio give me a permission error. Same thing if i try to open the SOAP url by internet explorer. Seem I have to unlock something.

    Regards,

    Gianmaria

     

  • Saurav.Dhyani Profile Picture
    14,330 Super User 2025 Season 2 on at
    RE: Web Service to Archive Sales Orders

    Hey,

    Why don't you try to publish Codeunit 5063 and use ArchiveSalesDocument function from the exposed codeunit.

    The function accept a parameter that is Sales Order No.

    Let me know the issue completely.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Mansi Soni – Community Spotlight

We are honored to recognize Mansi Soni as our August 2025 Community…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics NAV (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans