Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV (Archived)

Update inventory via web services

Posted on by 25

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

  • Suggested answer
    RockwithNav Profile Picture
    RockwithNav 6,562 on at
    RE: Update inventory via web services

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

    Dont skip any mandatory validations from NAV side.

  • RE: Update inventory via web services

    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

  • Guillem Padilla Profile Picture
    Guillem Padilla 425 on at
    RE: Update inventory via web services

    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

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,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans