Skip to main content

Hi,

I try to set a link within the same command, that created a new record. The createRecordAsync command works as long as I set all other attributes, except the one with a link (the red line). As soon as I add the red part, I get the error message - see screenshot. Can anyone help me please with that?

 

let newrecord_miete = await table_tacs.createRecordAsync({ 
                    "TAC_Date": per_positive_tac.getCellValue("TAC_Date"),
                    "Bank Account": per_positive_tac.getCellValue("Bank Account"),
                    "TAC_Amount": active_bruttomiete,
                    "TAC_Source": per_positive_tac.getCellValue("TAC_Source"),
                    "TAC_Description": "Bruttomiete: " + per_positive_tac.getCellValueAsString("TAC_Description"),
                    "TAC_GUID": per_positive_tac.getCellValueAsString("TAC_GUID"),
                    [nameImmo]: [{id: active_immo}],
                    "checked_tosplit": 1
                })

thank you!, best regards, Chris

Hi @Christian_L ,

Which type of field is [nameImmo]?
It does not seem to be a "link to another table" field.


Dear @Sho so easy the solution, thank you; it looked like a link; but it was a lookup... I created a link and now it works..


Reply