@mooghermez you can make a loop with the “split in batches” node. Check the example below.
{
"nodes": [
{
"parameters": {
"functionCode": "return [\n {\n json: {\n articleId: 1,\n } \n },\n {\n json: {\n articleId: 2,\n } \n },\n {\n json: {\n articleId: 3,\n } \n }\n]"
},
"name": "mockup_data",
"type": "n8n-nodes-base.function",
"typeVersion": 1,
"position": [
450,
120
]
},
{
"parameters": {
"batchSize": 1
},
"name": "SplitInBatches",
"type": "n8n-nodes-base.splitInBatches",
"typeVersion": 1,
"position": [
670,
120
]
},
{
"parameters": {},
"name": "NoOp",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [
1360,
150
]
},
{
"parameters": {
"operation": "delete",
"sheetId": "asasasasas"
},
"name": "Google Sheets",
"type": "n8n-nodes-base.googleSheets",
"typeVersion": 1,
"position": [
900,
120
],
"credentials": {
"googleApi": "asas"
}
},
{
"parameters": {
"conditions": {
"boolean": [
{
"value1": "={{$node[\"SplitInBatches\"].context[\"noItemsLeft\"]}}",
"value2": true
}
]
}
},
"name": "IF",
"type": "n8n-nodes-base.if",
"typeVersion": 1,
"position": [
1110,
370
]
}
],
"connections": {
"mockup_data": {
"main": [
[
{
"node": "SplitInBatches",
"type": "main",
"index": 0
}
]
]
},
"SplitInBatches": {
"main": [
[
{
"node": "Google Sheets",
"type": "main",
"index": 0
}
]
]
},
"Google Sheets": {
"main": [
[
{
"node": "IF",
"type": "main",
"index": 0
}
]
]
},
"IF": {
"main": [
[
{
"node": "NoOp",
"type": "main",
"index": 0
}
],
[
{
"node": "SplitInBatches",
"type": "main",
"index": 0
}
]
]
}
}
}