Skip to main content
sunus0001
September 27, 2021
Question

How to show the specific custom error message for an Appian web API which is used for creating records in Appian?

  • September 27, 2021
  • 14 replies
  • 0 views

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?

14 replies

stefanhelzle0001
Brainy
September 27, 2021

In general it is a good practice to validate incoming data before processing it. Then you know, what is wrong and can return that reason in an error message.

Inside a!writeToDataStoreEntity you do not have access to any error details.

sunus0001
sunus0001Author
September 27, 2021

Hi Stefan,

I got your valid point about validaton and we are doing it,but we need an extra feature for providing more details about error if incase the api fails.

Is there any way to show the error details in response as our business is asking this as a requirement to make the user experience better, so that user will come to know where they made the mistake while entering the values and why the error occured ?

stefanhelzle0001
Brainy
September 27, 2021

You can easily create a JSON structure which returns any details required. Then showing that to the user is SAP's job.