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

API Case Entity and Get Action can not be called without search fields

    Details

    • Type: Improvement
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.3.4
    • Fix Version/s: 4.5
    • Component/s: CiviCRM API
    • Labels:
      None

      Description

      In most API's the Get action can be used to get all of them (contacts, activities etc.). This can not be done for the Case API, if you call it like this:
      Code: [Select]
      $apiCases = civicrm_api( 'Case', 'Get', array('version'=>3 ));

      an error message is returned:
      Code: [Select]

      { "is_error":1, "error_message":"Missing required parameter. Must provide case_id, client_id, activity_id, or contact_id." }

      From a consistency point of view I would say it should return all cases.
      See forumpost http://forum.civicrm.org/index.php/topic,29330

        Attachments

          Activity

            People

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

              Dates

              • Due:
                Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 1 hour
                1h
                Remaining:
                Remaining Estimate - 1 hour
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified