Feature(s) impacted
In a smart action, I’m using a Collection field for users to lookup an id in an other table. But some ids returns so many results that the id being searched does not appear.
Here is the setup of the field :
{
label: “catalogueItemIdKey”,
description: “ID Parcours par apprenant”,
type: “Collection”,
collectionName: “catalogueItem”,
isRequired: true,
},
Observed behavior
I can see this network call being made :
curl ‘https://forest-backend-edumiam.herokuapp.com/forest/catalogueItem?timezone=Europe%2FParis&context[relationship]=BelongsTo&context[field]=catalogueItemIdKey&fields[catalogueItem]=catalogueItemId&page[number]=1&page[size]=100&search=50709&searchExtended=0&searchToEdit=true’
-H ‘Accept: application/json’
-H ‘Accept-Language: en-GB,en-US;q=0.9,en;q=0.8’
-H ‘Authorization: Bearer TOKEN’
-H ‘Connection: keep-alive’
-H ‘Content-Type: application/json’
-H ‘Origin: https://app.forestadmin.com’
-H ‘Sec-Fetch-Dest: empty’
-H ‘Sec-Fetch-Mode: cors’
-H ‘Sec-Fetch-Site: cross-site’
-H ‘Sec-Fetch-Storage-Access: active’
-H ‘User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/139.0.0.0 Safari/537.36’
-H ‘sec-ch-ua: “Not;A=Brand”;v=“99”, “Google Chrome”;v=“139”, “Chromium”;v=“139”’
-H ‘sec-ch-ua-mobile: ?0’
-H ‘sec-ch-ua-platform: “macOS”’
Expected behavior
It should return exactly this id
Failure Logs
Context
- Project name: forest_backend
- Team name: All teams
- Environment name: All environments
- Database type: Supabase
- Recent changes made on your end if any: none
And, if you are self-hosting your agent:
- Agent technology: nodejs
- Agent (forest package) name & version (from your .lock file): 1.60.0
