Skip to main content

Notifications

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

  • Suggested answer
    RockwithNav Profile Picture
    6,869 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.

  • Daniel B. Sigurgeirsson Profile Picture
    29 on at
    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
    427 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

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Leaderboard > Microsoft Dynamics NAV (Archived)

#1
Sohail Ahmed Profile Picture

Sohail Ahmed 2

#1
mmv Profile Picture

mmv 2

#1
Amol Salvi Profile Picture

Amol Salvi 2

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans