I am making POST requests to an API, and occasionally I receive a response indicating that a ‘record already exists’. However, I am encountering difficulties in querying the JSON response as it is displayed in red text, suggesting it might not be recognised as a valid value. Is there a way to implement a function to check the existence of a record before making a POST request, or to handle this scenario.
That’s what I am referring to. The query works if the text is blue and in your case pasted in directly, but the red text is not considering it as a value. I’ve even considered using a template column, but it is returning a blank value.
What you probably want to do is add another Query JSON column that extracts the Status code (meta.code), and perhaps the message, and then take appropriate action based on the value of that code/message.