Skip to content
TeamElGhazi
EN-USChange language
Submit a request
Update by ID

Update a Google Sheets Row by Its ID with n8n

The tools

The same case three times in your sheet? Never again.

At a glanceWith this TeamElGhazi n8n template, updating a Google Sheets row by its ID ensures that a case exists only once in your tracking sheet. Each time its status changes (request, quote, payment, closure), the system finds its row by its ID and updates it, or creates it if it is missing. Your teams read a sheet with no duplicates.

Google4,8out of 5 · 11 Google reviews

In practice

Result
A tracking sheet with no duplicates, where every case has an up-to-date status
Trigger
A send from one of your tools, each row with its number
Tools
n8n, Google Sheets, any application that sends a web request
Workflow size
5 blocks, no code block
Level
Beginner in n8n
Setup by TeamElGhazi
On quote
Le problème

Three rows for the same case: which one do you trust?

Reliable tracking across the whole organization. Without an ID, every update adds a row: the same customer appears three times, with three contradictory statuses, and no one knows which one to trust.

An example: the after-sales service of a home appliance retailer opens one ticket for each reported breakdown. The ticket gets a number when it arrives; the technician's visit, the part ordered, the repair: each step updates the same row, and the customer hears the same answer no matter who picks up the phone.

Le flux

Un dossier, une seule ligne, du début à la fin

  1. 01
    Des lignes avec leur IDLa requête protégée apporte une ou plusieurs lignes, chacune avec son identifiant.
  2. 02
    Une par uneLes lignes sont traitées séparément.
  3. 03
    Trouvée ou crééeL’ID est cherché dans l’onglet : la ligne est mise à jour, ou ajoutée si elle manque.
  4. 04
    La réponseLe nombre de lignes traitées revient à l’outil appelant.
Le même dossier, deux tableaux

Trois lignes contre une

Sans identifiant, chaque étape ajoute une ligne. Avec lui, le flux retrouve la ligne et la change.
Exemple
TicketSAV-2026-0412panne signalée le 18/11

Sans identifiant

  • 18/11 · Panne signalée
  • 19/11 · Technicien passé
  • 20/11 · Réparé ? En attente de pièce ?

Avec l'identifiant

  • SAV-2026-0412
  • État : réparé
  • Mis à jour le 21/11 à 10:12
Colonne cherchée
ID
Trouvée
la ligne change
Absente
la ligne est ajoutée

Nœud « Ajouter ou mettre a jour » du vrai flux : une seule ligne par numéro.

Avant de l'installer

The template, block by block

Columns are recognized by their header: only the ones sent are modified.

  1. A Webhook block receives a request protected by a token, with one or more rows; each row carries an ID column
  2. A Set block reads the list of rows sent
  3. A Split Out block processes them one by one
  4. A Google Sheets block in "append or update" mode looks for the ID in the tab: if it finds it, it updates the row; otherwise, it adds it
  5. The response returns the number of rows processed to the calling tool

The numbering rule comes first

n8n, a Google Sheets spreadsheet whose first row holds the headers and an ID column, and tools able to send a web request: website, business software, booking application, AI agent.

What matters most is not the tool but the numbering rule: a unique ID, assigned once, never reused.

Who changes the status of a case?

You define the possible statuses of a case and who may change them. The workflow applies; it does not decide. A sensitive step, such as "paid" or "cancelled", can require human approval before anything is written.

When the ID is wrong

  • A badly formed or reused ID overwrites the wrong case: the numbering must be produced by the system, never typed by hand
  • Two updates to the same case at the same moment: the last one wins
  • A column header changed in the sheet prevents writing to that column
  • Beyond a few thousand active cases, a database becomes preferable
Chez nous

Un dossier,
une ligne, chez nous aussi.

Chaque dossier de notre suivi garde une seule ligne, de la demande à la clôture.
For
TeamElGhazi (in-house project)
What was done
This template runs at our own company first: each case keeps a single row, from request to closure.
When
Since October 2026
Other templates

More workflows
ready to plug in.

Each template has its own page, its diagram and its installation request.
  • 01

    Read and Write a Range

    Your website reads the spreadsheet. Nobody has to open it.

    Result
    A spreadsheet your applications can read and edit, under control
    Trigger
    A request from one of your tools: which sheet, which range
    Tools
    n8n, Google Sheets API, any application that sends a web request
  • 02

    Create a tab

    On the first of the month, the month's tab is already there.

    Result
    A tab created at the right time, with the right name
    Trigger
    A request sent from one of your tools, or a date
    Tools
    n8n, Google Sheets
  • 03

    Add a row

    Three entry points, one sheet, no retyping.

    Problem
    A tracking sheet filled in by hand, always behind
    Trigger
    A submission from one of your tools: form, website or AI agent
    Result
    Rows added to the chosen tab, and their number returned in the response
  • 04

    Publishing log

    Four networks, one register, one line per post.

    Result
    A single, dated register of social media activity
    Trigger
    A web request sent by each tool after an action
    Output
    One line per action, in ten columns
  • 05

    PDF guide in exchange for an email

    A useful guide in exchange for an email address. Nothing more, nothing hidden.

    Problem
    A guide distributed without knowing who reads it
    Trigger
    Submission of the form on the guide's page
    Result
    A row in the leads sheet and immediate access to the PDF
  • 06

    B2B email prospecting with n8n and Google Sheets: one list

    A few emails a day, a single follow-up, and a “STOP” that is respected.

    Problem
    Sends, follow-ups and unsubscribes tracked by hand
    Triggers
    Business days, in the morning (sending, follow-up)
    Result
    One row per organization, a status that moves forward
Frequently asked questions

Your questions
about automation.

4 answers

Can several cases be updated at once?

Yes: the request carries a list of rows, each with its ID. The workflow processes them one after the other.

What happens if the ID does not exist yet?

The row is created. This is intentional: the same call handles both creation and updates.

Can the history of status changes be kept?

Yes, by adding a dated row in parallel in a log tab. The main sheet shows the current status, the log shows the path.

Does this template replace a CRM?

No. It works as long as the tracking fits in a spreadsheet. Beyond that, we connect the same logic to a real CRM.

Your request

Your request
goes here.

in 100 languages
01 · Submit a request
Your request
You
At least one of the two: email or phone.
Sending

Your data is used only to reply to you (Law 09-08, GDPR). Privacy
02 · Meeting30 min

Individuals, institutions, companies: you choose your slot online. A first 30-minute conversation about a project, or your hours of lessons.

Choose a slot
03 · A call, an email06 60 66 59 52

Call us, or write to contact@teamelghazi.com

Service delivered in
  • 100 languages
From Casablanca: on site in Morocco, remotely everywhere.
Submit a requestMeeting