This topic was automatically generated from Slack. You can find the original thread here.
My goal is to update an arbitrary number of values in a google sheets from information derived from a python node.
Example of the data being exported in python node:
{"1":{"A":"Name 1","B":"Note 1","C":"Code 1","D":154478},"2":{"A":"Name 2","B":"Note 2","C":"Code 2","D":54689},"3":{"A":"Name 3","B":"Note 3","C":"Code 3","D":12},"4":{"A":"Name 4","B":"Note 4","C":"Code 4","D":9999}, . . . . . }
Spreadsheet column set up:
A1 = "Name", B1 = "Icon", C1 = "Code", D = "No.Value"
A2 = "Name 1", B2 = "Icon 1", C2 = "Code 1", D = "154478"
A3 = "Name 2", B3 = "Icon 2", C3 = "Code 2", D = "54689"
A4 = "Name 3", B4 = "Icon 3", C4 = "Code 3", D = "888"
I have a Python node that outputs an array of arrays which I would like to use to update values or insert new rows into a Google sheet. The Google sheets Upsert row seems to only take, and update one value at a time (which I can’t seem to pass an array of arrays to iterate through). As a concrete example, with the given data above and the images below, cell D4 would need to be updated from 888 to 12 and a new row inserted as “Code 4” does not appear in Column C (key column).
How would I set up my upsert node to fulfil this requirement, or would I have to create a new Python node to accomplish this? If the latter, what code would I need to run to do so?
Thanks in advance!

