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 (Moderator: Dave Greenberg) »
  • API not returning contribution_page_id
Pages: [1]

Author Topic: API not returning contribution_page_id  (Read 348 times)

dsdart

  • I post occasionally
  • **
  • Posts: 85
  • Karma: 3
  • CiviCRM version: 4.4
  • CMS version: Drupal 7.25
  • MySQL version: 5.1.41
  • PHP version: 5.3.1
API not returning contribution_page_id
January 07, 2014, 11:42:25 am
I am trying to get the contribution_page_id using the civicrm api.  Using the method suggestion in this thread http://forum.civicrm.org/index.php?topic=25672.0 isn't working (adding 'return=> 'contribution_page_id', to the params).

When I use the API explorer and generator, contribution_page_id is not included in the fields that are returned with the 'get' action.

Can anyone suggest how to get this field or point me to the place where this field is being excluded/not included so I can kill a kitty hack core?

On the most current civi 4.4 on drupal 7.25 (most current)

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: API not returning contribution_page_id
January 08, 2014, 11:45:46 pm
If the field contribution_page_id is not included in the api fields then it is not in the api.
You have two options:
- raise an issue on http://issues.civicrm.org/ fix the issue in the core api and add a patch
- create your own extension and use the api wrapper function to add the field to the core api, see http://wiki.civicrm.org/confluence/display/CRMDOC/Create+an+Extension
Consultant/project manager at EEatWork and CiviCooP (http://www.civicoop.org/)

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM (Moderator: Dave Greenberg) »
  • API not returning contribution_page_id

This forum was archived on 2017-11-26.