03-13-2021, 12:53 PM
I would like to perform webservice calls, but run the system validations when doing so. I remember we had special way of running the validations when performing webservices, but couldn't find it in the docs.
Performing webservice calls using validation
|
03-13-2021, 12:53 PM
I would like to perform webservice calls, but run the system validations when doing so. I remember we had special way of running the validations when performing webservices, but couldn't find it in the docs.
03-13-2021, 02:50 PM
Nice, couldn't find that through the search method in the wiki
03-15-2021, 08:23 AM
So this is not working for me. I refactored my webservice call from:
PHP Code: $client->doCreate('Assets', $params); PHP Code: $client->doInvoke('CreateWithValidation', array('elementType' => 'Assets', 'element' => json_encode($params))); PHP Code: function isUniqueSerial($fieldname, $fieldvalue, $params, $entity) {
03-15-2021, 12:04 PM
check if your function is being called and dump the parameters to see if the query is correct
Joe
TSolucio
What query? Ah you mean the validation query. I already spot the issue. The validation receives webservice ID's, where when inside the application, it receives non-webservice regular ID's.
Done, works like a charm now, thanks for the help
|
« Next Oldest | Next Newest »
|