Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Will validations run on webservice calls?
#1
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?
Reply
#2
No, they will not. In order to execute validations before Create Update operations you must use the web service endpoints:

CreateWithValidation
UpdateWithValidation
ReviseWithValidation
Joe
TSolucio
Reply
#3
Ah yes that was it, thanks. Will that also work for Revise, Update?
Reply
#4
yes, use:

UpdateWithValidation
ReviseWithValidation
Joe
TSolucio
Reply
#5
Thumbs Up 
Nice, thanks
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)