How to set information to more than one line?

Describe the problem/error/question

I have an input that has the following structure:

{
"codigo_pai": 249591623,
"row_numbers": [2,3],
"desc": "lorem ipsum...."
}

I created a Google Sheets node to update the rows. I want to set “desc” for all rows that are within “row_numbers” or for all rows that have the same “codigo_pai”. How do I do this?

Information on your n8n setup

  • n8n version: 1.38.1
  • Database (default: SQLite): default
  • n8n EXECUTIONS_PROCESS setting (default: own, main): default
  • Running n8n via (Docker, npm, n8n cloud, desktop app): n8n cloud
  • Operating system: idk

@Mateus_Rodrigues , it could be something like this

Explanation:

  1. Split Out to create the number of items equal to the number of rows you need to update
  2. Update rows by matching the row number and updating the “desc”
2 Likes

Thank you a lot for the help. You’re a great man, my friend.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.