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

CiviCRM API not working for CustomValue update

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: 3.4.8
    • Fix Version/s: 4.3.0
    • Component/s: CiviCRM API
    • Labels:
      None

      Description

      Providing the API explorer with the values:
      /civicrm/ajax/rest?json=1&debug=1&version=3&entity=CustomValue&action=update&id=2&entity_id=65843&custom_103=6

      I get the error message:
      "error_message":"entityID needs to be set and of type Integer"

      The same parameters for the API explorer are accepted when using the "create" method instead for CustomValue (someone explained to me that "create" can also do an update if you provide existing keys).

        Attachments

          Activity

            People

            • Assignee:
              xavier xavier dutoit
              Reporter:
              stuart.green Stuart
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: