Full Version: Will validations run on webservice calls?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I've asked this before in Gitter and have forgotten the answer, so here is an attempt to get this more permanent.

My goal is to write a custom validation that will only allow setting salesorders to a certain status when specific conditions are met (will write custom code for this). But when someone changes the status through webservice, will that validation be run as well? Or will someone through webservice be able to change a status where I wouldn't allow that to happen inside the app?
No, they will not. In order to execute validations before Create Update operations you must use the web service endpoints:

Ah yes that was it, thanks. Will that also work for Revise, Update?
yes, use:

Nice, thanks