Hi everyone,
I’m currently working on a project that connects n8n with Grist and involves several related tables.
I have two tables, for example:
- Offres
- motCles
In the Offres table, I have a Reference List column that can reference multiple records from the motCles table.
When creating a new Offres record from n8n, I initially tried to populate this Reference List using:
["r", id1, id2]
id1 and id2 are Numbers.
According to the Grist documentation, “r” corresponds to ReferenceList:
ReferenceList = “r”
However, this did not work when sending the data through n8n.
What did work was:
["L", id1, id2]
Interestingly, “L” is documented as:
List = “L”
and appears to be intended for regular Lists rather than Reference Lists.
So my questions are:
- Is [“L”, id1, id2] actually the correct format to use when setting a Reference List value through the API?
- Or am I using the API incorrectly and [“r”, id1, id2] should work?
- If [“L”, id1, id2] is indeed the expected format, could the documentation be clarified to explain this distinction?
For now, using ["L", id1, id2] solves my problem, but I’m wondering whether this is expected behavior or if I simply misunderstood something in the documentation.
Thanks!