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) »
  • Chained API Commands via Rest: Get related Entities
Pages: [1]

Author Topic: Chained API Commands via Rest: Get related Entities  (Read 715 times)

pminf

  • I post occasionally
  • **
  • Posts: 56
  • Karma: 0
  • CiviCRM version: 4.3
  • CMS version: Drupal 7
  • MySQL version: 5.6
  • PHP version: 5.3
Chained API Commands via Rest: Get related Entities
June 12, 2013, 08:12:17 am
Im trying to get events including their related location via Rest API. I guess the query should look like this:

Code: [Select]
/civicrm/ajax/rest?entity=Event&action=get&json={"api.LocBlock.Get":{"id":"use loc_block_id of the event"}}
As you can see, I don't know how to join (Event.loc_block_id = LocBlock.id) those entities, to get related data.

Do you have any further information about chained API commands via Rest?

Erik Hommel

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1773
  • Karma: 59
    • EE-atWork
  • CiviCRM version: all sorts
  • CMS version: Drupal
  • MySQL version: Ubuntu's latest LTS version
  • PHP version: Ubuntu's latest LTS version
Re: Chained API Commands via Rest: Get related Entities
June 12, 2013, 11:26:06 pm
Hmm I have not tried chaining REST calls yet. Did you check the examples folder in the api folder?
Consultant/project manager at EEatWork and CiviCooP (http://www.civicoop.org/)

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion »
  • APIs and Hooks (Moderator: Donald Lobo) »
  • Chained API Commands via Rest: Get related Entities

This forum was archived on 2017-11-26.