Hi,
when using e.g. Invoke REST web service action and using optional form fields as input parameters in the body there is a problem if a form field is empty.
The REST call returns BadRequest (400) because of a syntax error. That’s because WEBCON doesn’t set anything in the body. Depending of the chosen body type it would be great if WEBCON would automatically set the correct string. E.g. null if JSON is chosen.
Right now one has to set all attribute values in quotes to prevent this and to cast them on the endpoint's server side or a form rule and extra form field are needed to create the needed string for the body if the field value is empty.
Could you imagine to return e.g. null for JSON bodies instead of nothing? Nothing is just not null. This would be great and the handling would be much easier for us devs!
Kind Regards,
Sébastien