Hello, @Nicolas Mikellides (CTC ITEC) - Thanks for reaching out!
In order to use the Conditional effectively, it's important to determine what kind of data types we are working with. In your case, it looks like the response data should be surrounded by curly braces, {}
, like below:
{
"value":[]
}
This is something that you should address first and make sure there are curly braces. That way, we can safely assume that the response is going to be a valid JSON object where its value property is expected to be data type of an Array. Because we know that arrays are a data type that holds collection of items, we can leverage that fact in our Conditional such that it checks if the Array is either empty (has 0 items) or has one or more items in it, like below:
The above the correct & ideal approach for you to implement the Conditional. However, If for some reason the surrounding braces aren't going to be there in the response for it to be a valid JSON object, we should then safely assume that the response is going to be a data type of String like the below:
"value:[]"
In the case of String data type, we can use the contains operator per your original approach but have the double-quotes wrap the entire String value, like below:
I have tested both of the approaches above & confirmed that they work as expected. Could you try these approaches and let me know if the issue gets resolved? In case you run into any other issues or need further clarity, just let me know!