Can I access the emailAddressData property in GET /Contact?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • zoul
    Junior Member
    • Apr 2025
    • 6

    Can I access the emailAddressData property in GET /Contact?

    Hello! I am trying to get a list of all my contacts with all their email addresses through the REST API. When I call GET /Contact, I get the list of contacts, but only with the primary email address, the emailAddressData property is missing. When I GET /Contact/:id, the emailAddressData property is present. Can I somehow get it on GET /Contact, too?
  • yuri
    Member
    • Mar 2014
    • 8872

    #2
    Hi,

    It's not possible out of the box.

    You can try the following.

    Create a file custom/Espo/Custom/Resources/metadata/app/fieldProcessing.json

    Code:
    {
        "listLoaderClassNameList": ["Espo\\Core\\FieldProcessing\\EmailAddress\\Loader"]
    }



    Then, clear cache.

    I believe it will work, though I didn't test.

    But it will make the system slightly slower.
    If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

    Comment

    • zoul
      Junior Member
      • Apr 2025
      • 6

      #3
      Perfect, thank you very much, will try.

      Comment

      Working...