I want to create a record in Nocodb. My record contains a field that is linked to another table. So I have the value label, but I want it to create the link when I create the record, to avoid saving the label in a text field.
Hey @Julien_J, welcome to community.
Suppose you create a new Application record.
You have to pass data about you group to the record.
Do get record and you will see it structure, look at the picture.
@Julien_J i think this will help you create what you are looking for in n8n,
First, get the ID of “Group 2” using a NocoDB node:
Operation: “Get All Records”
Table: “Groups”
Additional Options: Add filter where Title equals “Group 2”
Then create your Application record with another NocoDB node:
Operation: “Create Record”
Table: “Application”
Fields:
Name: "Foo"
Group: {{$node["Get Group ID"].json["list"][0]["Id"]}}
For linked fields in NocoDB, you must use the ID value of the linked record, not the display value. This can’t be done in a single operation - you need two steps (get ID then create record).
If you’re creating multiple records, use a Function node to create a mapping of group names to IDs first to improve efficiency.
Hey @Julien_J to change a links in a table you should you custom API call since NocoDB node doesn’t support it yet unfortunately.
Here is example of that node.
Do you know how we would request they publish the nocodb node source code so we can possibly add this in? Using the additional http request is tedious in large tables.