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) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Civi API version supporting IN, LIKE etc?
Pages: [1]

Author Topic: Civi API version supporting IN, LIKE etc?  (Read 390 times)

ssiruguri

  • I’m new here
  • *
  • Posts: 3
  • Karma: 0
  • CiviCRM version: 4.5
  • CMS version: 3
  • MySQL version: 2
  • PHP version: 55
Civi API version supporting IN, LIKE etc?
November 07, 2014, 12:34:19 pm
Hi -

what version of Civi and the API support this format?

    $result = civicrm_api3('Group', 'get', array(
    'sequential' => 1,
    'title' => array('IN' => array("hello", "world")),
    ));

I have v3 of the API and 4.4.6 of Civi but while I can get this to work -

Code: [Select]
$params = array(
  'version' => 3,
  'sequential' => 1,
  'title' => array('GA State Contacts' => 1),
);

this returns no results:

Code: [Select]
$params = array(
  'version' => 3,
  'sequential' => 1,
  'title' => array('IN' => array("GA State Contacts",)),
);

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Civi API version supporting IN, LIKE etc?
November 07, 2014, 10:17:56 pm
Looks like group.get api was standardised in 4.5

https://issues.civicrm.org/jira/browse/CRM-14449

I would consider backporting the fix to that api to 4.4.10 - due out first week of Dec - not sure if that would help you
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

ssiruguri

  • I’m new here
  • *
  • Posts: 3
  • Karma: 0
  • CiviCRM version: 4.5
  • CMS version: 3
  • MySQL version: 2
  • PHP version: 55
Re: Civi API version supporting IN, LIKE etc?
November 07, 2014, 10:51:47 pm
I'm sorry, I didn't understand how the issue linked to is related to this problem ... is a smart group somehow related to custom fields?DYRR

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Civi API version supporting IN, LIKE etc?
November 07, 2014, 11:21:54 pm
no - that issue involved a clean up of the group.get api which fixed your issue as a side-effect
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

ssiruguri

  • I’m new here
  • *
  • Posts: 3
  • Karma: 0
  • CiviCRM version: 4.5
  • CMS version: 3
  • MySQL version: 2
  • PHP version: 55
Re: Civi API version supporting IN, LIKE etc?
November 08, 2014, 04:54:14 pm
Got it, thanks, Eileen! Yes, indeed, it would help me immensely if you backported it ... is there a release mailing list I can watch to see if there's a 4.4.11 release?

sameer.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Civi API version supporting IN, LIKE etc?

This forum was archived on 2017-11-26.