.NET Podio filter INT erro

Answered

Comments

6 comments

  • Ajmal v Hassainar

    Hi Thiago,

    If you are trying filter with a numeric field please try the below example:

    // filter items with numeric field value from 100 to 200
    string numberFieldId = "1232131";
    var filter = new Dictionary<string, object>
    {
        {numberFieldId, new { from = 100, to = 200} }
    };
    var filteredItems = podio.ItemService.FilterItems(appId: 123, filters: filter);
    

    This example is already mentioned in PODIO .NET client documentation.

    1
    Comment actions Permalink
  • Thiago Caldeira

    Thanks, it worked!
    I found it strange because it has to pass this interval , and in my case is just one number .

    0
    Comment actions Permalink
  • Ajmal v Hassainar

    Podio API only allows to filter the numeric with range. See the documentation here: https://developers.podio.com/doc/filters

    0
    Comment actions Permalink
  • Thiago Caldeira

    Thanks Ajmal !

    0
    Comment actions Permalink
  • devteam5

    Hi If you want to filter items use this code in .net

    var filterOptions = new FilterOptions();
    var filter = new Dictionary<string, object>();
    // Param filter
    filter.Add("loan-request-id", "12-2016111502"); // key, value and can add more filters
    filterOptions.Filters = filter;
    var filteredItems = podio.ItemService.FilterItems(appId: app_Id, filterOptions: filterOptions, includeFiles:false);

    Hope It Helps

     

    0
    Comment actions Permalink
  • Thiago Caldeira

    Thanks devteam5 !

    0
    Comment actions Permalink

Please sign in to leave a comment.

Powered by Zendesk