Post

3 followers Follow
0
Avatar

API - Filter : OR filters attribute

hi,

I use since a while your API. It's a great tool, really complete. But for once I have a case to solve I didn't have it before.
It's about the function PodioItem::filter($appId, $attributes);

And more specifically on filters attribute, for example this call works :

PodioItem::filter(xxx, array('filters' => array('phone' => '0678451245')));

It gets all items with phone field filled with 0678451245 value.

How can I do to add an "OR" filters

To get for example all tems with phone field filled with 0678451245 value OR 017845124578 OR 01.45.45.12.12 ?

I can do 3 calls but it will be better to use just one, can you help me on this ?

Thx for ur help !

Keran

Official comment

Avatar

Hi Keran,

The Filter Items operation does not support OR, so you would have to do separate calls.

Casper Fabricius
Comment actions Permalink

Please sign in to leave a comment.

2 comments

0
Avatar

Hi Casper, 

It's too bad :). My only fear is to reach the API call limit.

All right, I'll deal with it, thx a lot for your answer.

 

 

Keran 0 votes
Comment actions Permalink