Post

1 follower Follow
0
Avatar

Is there a limit on the number of Item fields returned by the API?

Hello,

I have an app with items that have 21 fields but only a few are being returned.

Ruby snippet:

i=Podio::Item.find(<< some id >>)

i.fields.map {|e| e['external_id'] }.length

I tested with 3 different items and had 3 different answers: 5, 6, 15

How can I 'ask for all fields'?

TIA,

Leonardo Constantino Coelho da Rosa e Oliveira Answered

Please sign in to leave a comment.

1 comment

0
Avatar

The API only returns fields that are filled out on the item. Just like Podio only shows fields with content when you view an item.

If you want a list of all fields in the app, you should use Get app and loop through all fields on the returned Appplication instance.

Casper Fabricius 0 votes
Comment actions Permalink