Post

3 followers Follow
0
Avatar

Podio API - Filter items

Hi, guys.

I have faced an issue. I have an app. And I want to get an item from it by field value.
I'm using this API to get it -> https://developers.podio.com/doc/items/filter-items-4496747.

If I am using 'external_id: value' in filter field it doesn't return anything. If I am using 'field_id: value' in filter field it returns wrong item.

But when I try to search an item from UI it works perfect.
Would you please help me with this issue? We need to be able get items from server by API.

Best Regards,
Andrey

System Admin Answered

Please sign in to leave a comment.

5 comments

0
Avatar

Hi Andrey,

Please share the exact request you're making (URL, HTTP method and post body). Also, what type of field are you trying to filter on?

Best,
Andreas

Andreas Garnæs 0 votes
0
Avatar

Hi, Andreas.

Thanks for reply. Request is below.

POST /item/app/{app_id}/filter/ HTTP/1.1
Host: api.podio.com:443
Authorization: OAuth2 tokenhere
Cache-Control: no-cache

Content-Disposition: form-data; name="filters"
{ filters: { title: '160103' }, limit: 500, offset: 0 }

Request returns an item with title 160132, but 160103 exists.

Andrey

System Admin 0 votes