Post

6 followers Follow
1
Avatar

How to get a list of items by item_ids

I have tow questions, I am currently working on integrating a click-to-call app on Podio with the capability to pop a record relating to the dialled
phone number using our VOIP APIs.

1) I have a set of item_ids and I am trying to retrieve a full list of items using these set of item_ids. Is this possible and how do i apply
the ids as filters in one call.

2) I noticed that searching <pre> /search/app/{app_id}/</pre> for a text or keyword does not return that fields and values of the returned record
What is the best way to retrieve the full item details for a search phrase.

Christian Augustine

Please sign in to leave a comment.

15 comments

0
Avatar

Hi Christian,

I don't think that 1) is possible (ie. get a set of items by item_id), but maybe someone else knows better.

Regarding 2), did you have a look into https://developers.podio.com/doc/items/filter-items-4496747 ? Depending on your use case that might be a viable alternative since search does not return enough data in your case.

Best,
Stefan

Stefan Ukena 0 votes
Comment actions Permalink
0
Avatar

Hi Stefan,

Yeah I already had a go with the filtering method but it seem item_id is not a valid filtering key. ERROR "error_description": "Invalid value \"item_id\" (string): Invalid filtering key",

I find it amusing if your API does not simply allow one to fetch a set of item by ids f.ex SELECT * FROM items WHERE item_id IN (..., ..., ...)

I really need this to work, please point me to the right direction.

Christian Augustine 0 votes
Comment actions Permalink
0
Avatar

Hi Christian,

to clarify: I don't work for Podio, so there is nothing I can really do for you except trying to give advice. And I cannot find an API-call to fetch items by their id either, even though the bulk delete method has such an option. Maybe Podio could add this as an option for fetching items as well.

In the meantime you probably have to fetch each item one-by-one. :/

Best,
Stefan

Stefan Ukena 0 votes
Comment actions Permalink
0
Avatar

Thanks for your precious time Stefan. I hope someone from Podio give me some hope!

Christian Augustine 0 votes
Comment actions Permalink
0
Avatar

Christian, I've noted your feature request. It's a good idea, but I can't make any promises as to how/when/etc.

Andreas Haugstrup Pedersen 0 votes
Comment actions Permalink
0
Avatar

This would be awesome, please can we have this... Just came across the same issue... I have to make n requests rather than just the 1 beautiful awesome request :)

James Trusler 0 votes
Comment actions Permalink
0
Avatar

+1, will be useful for us the developers and less resources intensive for Podio. Doesn't that sound like a win/win :)?

Pieterjan M. 0 votes
Comment actions Permalink
0
Avatar

just came across same issue it would be nice to have this feature as we dont have to make repeated call to Get Items

Prashant Soni 0 votes
Comment actions Permalink
0
Avatar

Hi Andreas, do you already have an idea if the "filter app on item ids" will be available soon? This could save me a lot of individual Podio::Item.find calls. Thanks

Pieterjan M. 0 votes
Comment actions Permalink
0
Avatar

We don't have any estimate for this feature request.

Andreas Haugstrup Pedersen 0 votes
Comment actions Permalink
0
Avatar

I had to stop working on my integration project due to lack of this feature. Please prioritize it as its deemed essential for developers.

Christian Augustine 0 votes
Comment actions Permalink
2
Avatar

Just a short follow-up: We have updated the API so you can now filter by item_id (and app_item_id). Just use item_id or app_item_id as the filter key and give it an array of item ids (or app item ids).

Andreas Haugstrup Pedersen 2 votes
Comment actions Permalink
0
Avatar

Hi Andreas, works like a charm, thanks a lot! Just name the address and I'll send a box of Belgian chocolates ;).

Pieterjan M. 0 votes
Comment actions Permalink
0
Avatar

Hi Andreas, I was expecting the results to include the fields in the returned results?

Christian Augustine 0 votes
Comment actions Permalink