CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion »
  • APIs and Hooks (Moderator: Donald Lobo) »
  • Range filters on API fields
Pages: [1]

Author Topic: Range filters on API fields  (Read 835 times)

mmikitka

  • I’m new here
  • *
  • Posts: 23
  • Karma: 0
Range filters on API fields
June 20, 2013, 07:10:29 pm
Hello: Is it possible to apply binary, range filters against data via the API. For example, "all records with date >= 2013-06-20"? Or "all id values > 100".

Just thinking of ways to reduce load (bandwidth, CPU on the client side for processing, etc.)

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Range filters on API fields
June 20, 2013, 07:18:23 pm
Some, but not all api accept sql type operators eg

https://github.com/civicrm/civicrm-core/blob/master/api/v3/examples/Address/AddressLike.php

for something like 'Between' is would accept an array I expect.

It would be nice to make them work all over the place
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

mmikitka

  • I’m new here
  • *
  • Posts: 23
  • Karma: 0
Re: Range filters on API fields
June 20, 2013, 07:44:53 pm
Thank you, Eileen

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion »
  • APIs and Hooks (Moderator: Donald Lobo) »
  • Range filters on API fields

This forum was archived on 2017-11-26.