Hi all,
I have created an Appian web API that insert record on our server using Appian tables, this API is consumed by SAP to insert data.And it saves data ,but when an error occurs, how we can provide information about the specific input field where the error occured and give a customised error message to the end user.We need help and support from the Appian team to provide a detailed and customized error message for a webapi.
Hope anyone can help us on this scenario?
Discussion posts and replies are publicly visible
Thank you for your reply.I would like to error check each field before registering and I would like to display a customized error message.
OK. And what exactly do you have trouble with?
how to pair error messages for each field using Expression rules
I really have a hard time understanding what you mean.
In general, you need an expression that conducts all validations and returns a list of text with zero or more error messages.
Then you check for the length of this list and return a HTTP 400 response including that list of errors.