Hey Baserowers!
I’m having an issue linking to records inside a “link to table” field inside my table when using the Baserow module in n8n. Perhaps there is a bug or perhaps I am missing something but it’s eluding me entirely at this point.
I have the following example json data that I am trying to send to my Baserow table.
[
{
"bedrag": 1718,
"bieder": "9970185247",
"datum": "03-04-2024, 20:43",
"gebruikerId": 403346,
"land": "NL",
"id": [
3828723
]
},
{
"bedrag": 1678,
"bieder": "de Rooy metalen ",
"datum": "03-04-2024, 20:41",
"gebruikerId": 460845,
"land": "NL",
"id": [
3828633
]
}
]
I have set up the id as an array as I believe that is what is expected from Baserow’s API.
However, when I map this to the Baserow node as {{ $json.id }}
it is being shown in n8n’s preview as [Array: [3828723]]
For some reason and if I execute this node, the “link to table” field remains unpopulated and indeed in the response, I see it come through as
"kavelData.id": [ ]
If I try and change the value to {{ $json.id[0] }}
to send only the id number 3828723
,
I end up getting an error returned:
{ "error": "ERROR_REQUEST_BODY_VALIDATION", "detail": { "field_1990805": [ { "error": "Expected a list of items but got type \"int\".", "code": "not_a_list" } ] } }
At this point, I am really not sure where it is going wrong. Any tips appreciated.