TwentyT
Twenty7mo ago
5 replies
tombro

"field 'companyId' does not exist in 'person' object"

I'm currently checking out twenty to see if it would fit my needs. I need to import/export some data over the rest API. When filtering objects, I can't seem to find a way to filter by relationship.

http://localhost:3000/rest/people?filter=companyId[eq]:59496649-ce24-43c0-80e6-e06a3d4119e2

Results in

{
  "statusCode": 400,
  "error": "BadRequestException",
  "messages": [
    "field 'companyId' does not exist in 'person' object"
  ]
}


This issue seems to be related, but I get this message even without a second relation to the company object. https://github.com/twentyhq/twenty/issues/12526

Self hosted (docker), v1.0.2
GitHub
Bug Description Discord thread here We were waiting for the release today but this did not solve the pb despite the PRs on relations. I was able to reproduce on their workspace and ours. Assume we ...
REST API - Cannot filter using a relation if they are 2 fields poin...
Was this page helpful?