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) »
  • Is there an api method to restrict the fetch to groups below a parent ?
Pages: [1]

Author Topic: Is there an api method to restrict the fetch to groups below a parent ?  (Read 1446 times)

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Is there an api method to restrict the fetch to groups below a parent ?
August 31, 2009, 04:17:19 am
Hi,

When I call

civicrm/ajax/rest?fnName=civicrm/group_contact/get&json=1&contact_id=XXX

I get all the groups, but I'd like to get only the groups below a specific parent.

Is there a param or other option to do it ?

X+
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Is there an api method to restrict the fetch to groups below a parent ?
August 31, 2009, 07:08:44 am

currently no

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: Is there an api method to restrict the fetch to groups below a parent ?
August 31, 2009, 02:43:52 pm
Can I modify the existing method and add an optional id_parent or do you prefer a separate method ?

X+
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion »
  • APIs and Hooks (Moderator: Donald Lobo) »
  • Is there an api method to restrict the fetch to groups below a parent ?

This forum was archived on 2017-11-26.