Apply View filters
Hi, I am trying to apply a filter to a view, specifically using the key "created_on" so I can limit the number of leads. The URL I am using it is GET /view/app/{app_id}/{view_id_or_name} but I noticed that it doesn't support POST in order to send the following body:
{
"filters": {
"created_on": {
"start": "{date.startOfMonth}",
"end": "{date.endOfMonth}"
}
},
"limit": 50
}
Appreciate the help.
-
Hi Alan,
Please use this endpoint instead: https://developers.podio.com/doc/items/filter-items-by-view-4540284
Best,
Andreas -
Hi Andreas,
I used the link you suggested. The filters are working ok. I am struggling when I see that the response retrieve all my leads, what I am thinking it is that the "created_on" filter it is being applied to the view, i.e. when it was created the view. I am wondering if there is a way to filter my view and retrieve the leads that were created_on the filter specified. Thanks for your help.
-
Hi Alan,
Sorry, I pointed you to the wrong endpoint the first time around. A View is a fixed set of filters, sort order, layout, etc. that you can reuse and it will show up on podio.com as part of the app view for your colleagues to use.
If you want to do arbitrary filtering and sorting, I recommend you use Filter Items-endpoint instead. The post body you submit is the same.
Best,
Andreas
Please sign in to leave a comment.
Comments
3 comments