Hi everyone,
I’m trying to build a Make.com scenario that imports website inquiries into EspoCRM.
Goal:
If an incoming email/inquiry belongs to an existing customer (EspoCRM Contact), I want to find the existing Case linked to that Contact and then add a note into the Case stream (POST to /Case/<id>/stream).
✅ What works
❌ What does NOT work (main issue)
1) Filtering Cases by Contact in Make “List Cases”
In Make module EspoCRM → List Cases, I tried:
Then I tried:
So I cannot retrieve the linked Case via Make’s List Cases module.
2) Trying to read linked cases via API endpoint
Because my Contact clearly has a linked Case, I tried using Make’s EspoCRM → Make an API Call module:
GET /Contact/<contactId>/cases
But this returns HTTP 404 Not Found.
I also tested other endpoints like /Contact, /Lead, etc. and they also return 404 in the “Make an API Call” module.
However the base / responds (403), so the connection itself seems alive.
In the browser, https://<my-domain>/api/v1/ shows “EspoCRM REST API”, so the REST API exists.
EspoCRM relationship setup
In Admin → Link Manager (Contact) I can see both:
In my data, the Case is linked via the Contact’s “Cases” panel, but the Case’s primary “Contact” field is empty, so it seems the relationship is n:n (cases), not casesPrimary.
My questions
Any help or example queries would be appreciated. Thanks!
I’m trying to build a Make.com scenario that imports website inquiries into EspoCRM.
Goal:
If an incoming email/inquiry belongs to an existing customer (EspoCRM Contact), I want to find the existing Case linked to that Contact and then add a note into the Case stream (POST to /Case/<id>/stream).
✅ What works
- Make.com EspoCRM modules work fine in general (e.g. List Contacts finds the correct Contact by email, Create Case works, etc.).
- In the EspoCRM UI, I can see that the Contact has one linked Case visible in the Contact view (panel label “Fälle” / Cases).
❌ What does NOT work (main issue)
1) Filtering Cases by Contact in Make “List Cases”
In Make module EspoCRM → List Cases, I tried:
- Filter By: contactId equals <ContactId>
→ Result = 0 cases found
(In the Case record, the field “Contact” / primary contact is empty.)
Then I tried:
- Filter By: contacts.id equals <ContactId>
→ EspoCRM returns HTTP 400 (RuntimeError)
So I cannot retrieve the linked Case via Make’s List Cases module.
2) Trying to read linked cases via API endpoint
Because my Contact clearly has a linked Case, I tried using Make’s EspoCRM → Make an API Call module:
GET /Contact/<contactId>/cases
But this returns HTTP 404 Not Found.
I also tested other endpoints like /Contact, /Lead, etc. and they also return 404 in the “Make an API Call” module.
However the base / responds (403), so the connection itself seems alive.
In the browser, https://<my-domain>/api/v1/ shows “EspoCRM REST API”, so the REST API exists.
EspoCRM relationship setup
In Admin → Link Manager (Contact) I can see both:
- Link cases (n:n) → “Case”
- Link casesPrimary (1:n) → “Case”
In my data, the Case is linked via the Contact’s “Cases” panel, but the Case’s primary “Contact” field is empty, so it seems the relationship is n:n (cases), not casesPrimary.
My questions
- What is the correct REST API endpoint to list Cases linked to a Contact?
Should GET /Contact/<id>/cases work in EspoCRM? - Why does Make’s List Cases module return HTTP 400 when filtering by contacts.id?
Is there a different attribute name required for filtering linked records? - Is there a recommended / correct way in EspoCRM to always keep the primary Case field contactId filled, so filtering by contactId works reliably?
Any help or example queries would be appreciated. Thanks!
