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?
Can I access the emailAddressData property in GET /Contact?
Collapse
X
-
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