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
You can do , just be extremely careful while doing so.
Dont skip any mandatory validations from NAV side.
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
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
Sohail Ahmed
2
mmv
2
Amol Salvi
2