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

GroupContact Create API cannot 'Delete' from Group

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 4.7
    • Fix Version/s: Unscheduled
    • Component/s: CiviCRM API
    • Labels:
      None
    • Versioning Impact:
      Patch (backwards-compatible bug fixes)
    • Documentation Required?:
      None
    • Funding Source:
      Needs Funding

      Description

      The GroupContent Delete API has been deprecated in favour of Create with the status 'Removed'.

      However, it is not possible to fully 'Delete' a contact from a group using the API. The GroupContact BAO looks for the 'Deleted' status passed to the function, rather than 'Removed'. But using 'Deleted' results in the API error:
      "Deleted' is not a valid option for field status"

      This is because 'Deleted' isn't a real value (as noted in the deprecated Delete API function).

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              john John K.
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: