Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-7231

Contact API does not return custom data

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Major
    • Resolution: Fixed/Completed
    • Affects Version/s: 3.2.5
    • Fix Version/s: 3.4.beta
    • Component/s: CiviCRM API
    • Labels:
      None

      Description

      Had some code that worked in 3.1.6 but broke on upgrade to 3.2.5.

      require_once 'api/v2/Contact.php';
      $params = array(
      'contact_id' => $contact_id,
      'return_custom_51' => 1,
      'return_custom_52' => 1
      );
      $result=civicrm_contact_get($params);

      Result does not return custom data.

      'return.custom_51' => 1,
      'return.custom_52' => 1

      notation (i.e. dot instead of underscore didn't work either.
      Does not return custom data any more.

        Attachments

          Activity

            People

            • Assignee:
              erikhommel Erik Hommel
              Reporter:
              michaelmcandrew Michael McAndrew
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Due:
                Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 4 hours
                4h
                Remaining:
                Remaining Estimate - 4 hours
                4h
                Logged:
                Time Spent - Not Specified
                Not Specified