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

Addressee is not being returned through REST, works through drush

    Details

    • Type: Bug
    • Status: Open
    • Priority: Trivial
    • Resolution: Unresolved
    • Affects Version/s: 4.6.21
    • Fix Version/s: None
    • Component/s: CiviCRM API
    • Labels:
      None
    • Versioning Impact:
      None (no code merged)
    • Documentation Required?:
      None
    • Funding Source:
      Needs Funding
    • Verified?:
      No

      Description

      When doing a contact.get through API or command line (drush) (i haven't tested it with php code as i'm currently focusing on REST) , if the returning field is "addressee", the fields:

      • addressee_id
      • addressee_custom
      • addressee_display
        are returned only when using Drush but not through the REST services.

      I've also noticed that on api/explorer, it's impossible to return the field "addressee", therefore, it will never return anything there.

      So basically, you need to specify returning field: "addressee" and the API will spit out :

      • addressee_id
      • addressee_custom
      • addressee_display

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              VangelisP Vangelis Pantazis
            • Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: