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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

Update inventory via web services

(0) ShareShare
ReportReport
Posted on by 29

Hi,

is it possible to update item inventory in Navision via web services? I am currently using OData web services to read data from Nav, and I can update simple entities by issuing POST or PUT requests to those services. However, when it comes to inventory management, I've had no luck in figuring out which web services I could call to update the inventory.

What I would like to accomplish is to allow users to perform the inventory count on separate devices, and those devices would then send the counted quantity to Navision via a Web service.

Any ideas?

Regards,

Daniel

*This post is locked for comments

I have the same question (0)
  • Guillem Padilla Profile Picture
    427 on at

    Hello,

    You can publish a codeunit as a web service.

    Add a public function in the codeunit with the parameters and the code you need and call it from the external service

  • Daniel B. Sigurgeirsson Profile Picture
    29 on at

    Thanks for your reply. I'm aware of web services which expose functions from code units, I would like to avoid them if at all possible. However, if that is the only way to do this, then we'll have to go down that path.

    What I would like to know in more details is what exactly must happen inside Navision when we enter the physical inventory for certain items. I've seen how Navision calculates the "expected" quantity, and we can then enter actual quantity which may result in either negative adjustments or positive adjustments. However, I haven't been able to figure out if those lines (where we enter the actual counted quantity) can be exposed via OData web services, and if they cannot be exposed in that way, how would I be able to access those lines from within a code unit.

    Regards,

    Daníel

  • Suggested answer
    RockwithNav Profile Picture
    8,635 Super User 2025 Season 2 on at

    You can do , just be extremely careful while doing so.

    Dont skip any mandatory validations from NAV side.

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics NAV (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans