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 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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,575 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,493 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans