Filter items problems
Hi, I'm trying use the filter item, but, the error is happening:   {"error_parameters":{},"error_detail":null,"error_propagate":false,"request":{"url":"http:\\\\/\\\\/api.podio.com\\\\/item\\\\/app\\\\/3778928\\\\/filter\\\\/","query_string":"oauth_token=5c03fae3be1548d7b7ec95e03f84887e","body":{"filters":{"id-corretor":["30b228a2-f608-e211-94e9-001b78b9d994","594ae198-b14b-e111-9fa8-001f2909e810"]}},"method":"POST"},"error_description":"Invalid value \\\\"30b228a2-f608-e211-94e9-001b78b9d994\\\\", \\\\"594ae198-b14b-e111-9fa8-001f2909e810\\\\": must be non empty string","error":"invalid_value"}   What this error mean? 

  • Hi Bruno, It's not possible to filter on multiple values for this field type. That's why you're getting the error message when you try. All the best, Andreas
  • ok, understand now. But, how can I send a string with two values? I need find in a text field, two distinct values. it's possible?
  • The returned JSON structure contains a copy of your entire request as well as a description of what is wrong. You can see from the error message that the problem is not that you are sending a null value. The problem is that you are sending an array value where a string value is required. If you run the return value through a JSON parser you can see that the returned data contains quite a bit of useful information for you to work with to debug your code. /Andreas
  • By the message, I understand that I sent one null value. But, if you see my array, I don't sending null value. List<String> _corr = new List<string>(); _corr.Add("test1"); _corr.Add("test2"); object _filter = new { filters = new { idcorretor = _corr } }; How can I send this array value using string?
  • I'm not sure I understand: The error message states that you are sending an invalid value and that the array you are sending must be a non-empty string. So send your filter value as a string instead of an array? All the best, Andreas
This question is closed.