Just learning, so new to this.
When a gmail arrives I use an edit node to get the text I want and add it to a google sheet.
I have a unique number (called Fix Number) and if that Fix Number is the same I would like to overwrite that row. If the Fix Number is different then it should create another row (append). What I am finding is that every time I test with the same Fix number I get another row, I was hoping just to see one entry in the sheet.
Hi - they are both by email.
I’ve just sent another with the same unique Key, my thinking is that I have a unique key so the row would just be replaced instead I have another entry/row. Or is my understanding on Append or update row wrong?
Your code definitely handles all inputs as text, while from data formatting in column A Google Sheet treats stored data as numbers. So server side it may indeed compare text (sent by you) with a number (stored in the sprreadsheet), just as @solomon suggested. If .toNumber() doesn’t work for you, then maybe try changing the formatting on spreadsheet side by setting the Column A format explictly as plain text.
Upd: Make sure you do not have any whitespaces before {{ or after }} in your expression. I was able to reproduce the behaviour you observe by adding a whitespace outside the expression brackets.
Upd: Here you go. You’ve got one in the Edit Fields node.
Thank you @solomon and @Olek - I made your suggestions and it has fixed the issue. I was not scientific in my testing so do not know if one or all the solutions provided did the job. Many thanks.
As I’m new here and you suggest to “mark it as a solution”, I’m assuming this is for some type of recognition (which is well deserved ). Is it possible to tick both as solutions?