Show notification depending on API resource response

How can I display a notification indicating that a duplicate record was attempted to be inserted using an API resource triggered by a form submission button? I want to show the notification only if the 'msg' field in the response body is 'ALREADY_EXISTS'. I tried the following approach, but it didn't work:

Hi @Gibran_Alexis_Moreno_Zuniga I agree with the approach of that second screenshot, as it looks like the query is "successful." I believe in that success handler (second screenshot), you have to write out the name of the query. Can you try {{ == "ALREADY_EXISTS"}}

It works! than you so much!

1 Like