The workflow JSON
Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →
{
"name": "WorkFlow 10",
"nodes": [
{
"parameters": {
"multipleMethods": true,
"httpMethod": [
"POST"
],
"path": "{{WEBHOOK_PATH_WF10}}",
"options": {
"responseData": ""
}
},
"type": "n8n-nodes-base.webhook",
"typeVersion": 2.1,
"position": [
240,
0
],
"id": "8ec0f7e0-6130-4d24-967c-798db64f907f",
"name": "Webhook"
},
{
"parameters": {
"resource": "databasePage",
"operation": "update",
"pageId": {
"__rl": true,
"value": "={{ $json.ItemId }}",
"mode": "id"
},
"propertiesUi": {
"propertyValues": [
{
"key": "Statut de la commande|select",
"selectValue": "={{ $json[\"Statut Demande\"] || \"\"}}"
}
]
},
"options": {}
},
"type": "n8n-nodes-base.notion",
"typeVersion": 2.2,
"position": [
864,
0
],
"id": "3f3b753e-eafe-4e11-a51f-34b0c7222a09",
"name": "Update Magasin",
"credentials": {
"notionApi": {
"name": "<your credential>"
}
},
"onError": "continueErrorOutput"
},
{
"parameters": {
"jsCode": "// R\u00e9cup\u00e9rer l'item d'entr\u00e9e\nconst item = $input.first().json;\n\n// Extraire le Statut PO (adapter selon ta structure de donn\u00e9es)\nlet statutinitial = $input.first().json.body.data.properties[\"\ud83d\udd34Statut demande\"].status.name;\n\n\n// Si c'est dans properties (structure Notion)\nif (item.properties && item.properties[\"Statut demande\"] && item.properties[\"Statut demande\"].status) {\n statutPO = item.properties[\"Statut demande\"].status.name;\n}\n// Si c'est directement accessible\nelse if (item[\"Statut demande\"]) {\n statutinitial = item[\"Statut demande\"];\n}\n\n// Mapping des statuts selon tes r\u00e8gles\nlet statutDemande = \"Non d\u00e9fini\";\n\n\nswitch (statutinitial) {\n case \"Commande Partiel\":\n case \"Command\u00e9\":\n statutDemande = \"Command\u00e9\";\n break;\n \n case \"Bloqu\u00e9\":\n statutDemande = \"Bloqu\u00e9\";\n break;\n \n case \"Annul\u00e9\":\n statutDemande = \"\";\n break;\n \n case \"Refus\u00e9\":\n statutDemande = \"\";\n break;\n \n case \"\u26a0\ufe0fNon-Conforme\u26a0\ufe0f\":\n statutDemande = \"\";\n break;\n \n case \"Cl\u00f4tur\u00e9\":\n statutDemande = \"\";\n break;\n \n case \"\u00c0 traiter\":\n statutDemande = \"En cours\";\n break;\n \n case \"En cours\":\n statutDemande = \"En cours\";\n break;\n \n default:\n statutDemande = \"\";\n}\n\n// Retourner l'item avec le nouveau statut\nreturn [{\n json: {\n ...item,\n \"Statut Demande\": statutDemande,\n // Debug info\n \"Statut Original\": statutinitial\n }\n}];"
},
"type": "n8n-nodes-base.code",
"typeVersion": 2,
"position": [
448,
0
],
"id": "8ad4b05b-acc7-4b13-9a77-2dd9dc56396e",
"name": "Statut Mapping"
},
{
"parameters": {
"assignments": {
"assignments": [
{
"id": "647c4e88-1da0-419f-b6aa-525865de89cf",
"name": "Statut Demande",
"value": "={{ $json[\"Statut Demande\"] }}",
"type": "string"
},
{
"id": "68dba164-f6e5-4182-822c-2250e2647a65",
"name": "ItemId",
"value": "={{ $json.body.data.properties.Demande.title[0].mention.page.id }}",
"type": "string"
},
{
"id": "7ef2b6d4-cc2f-44f7-839a-d7afcd2ca355",
"name": "Page",
"value": "={{ $('Webhook').item.json.body.data.id }}",
"type": "string"
}
]
},
"includeOtherFields": true,
"options": {}
},
"type": "n8n-nodes-base.set",
"typeVersion": 3.4,
"position": [
640,
0
],
"id": "058a4742-fa76-42f7-a983-651458328100",
"name": "Edit Statut",
"onError": "continueRegularOutput"
},
{
"parameters": {
"resource": "databasePage",
"operation": "update",
"pageId": {
"__rl": true,
"value": "={{ $json.Page }}",
"mode": "id"
},
"propertiesUi": {
"propertyValues": [
{
"key": "Auto task|select",
"selectValue": "\u26a0\ufe0fWorkFlow 10\u26a0\ufe0f"
}
]
},
"options": {}
},
"type": "n8n-nodes-base.notion",
"typeVersion": 2.2,
"position": [
864,
256
],
"id": "d33a00d0-d6c4-4153-a750-85248a1381ce",
"name": "Erreur Magasin",
"credentials": {
"notionApi": {
"name": "<your credential>"
}
}
},
{
"parameters": {
"content": "## Webhook Notion de la base Demande d'achat trigger\n**Double click** to edit me. [Guide](https://docs.n8n.io/workflows/sticky-notes/)",
"height": 272,
"color": 6
},
"type": "n8n-nodes-base.stickyNote",
"position": [
176,
-128
],
"typeVersion": 1,
"id": "6ced0f8d-b8bf-4655-a70b-d3f29171c271",
"name": "Sticky Note"
},
{
"parameters": {
"content": "## Update statut magasin\n**Double click** to edit me. [Guide](https://docs.n8n.io/workflows/sticky-notes/)",
"height": 272,
"width": 704,
"color": 4
},
"type": "n8n-nodes-base.stickyNote",
"position": [
416,
-128
],
"typeVersion": 1,
"id": "a5712c96-ce4d-4247-bfa6-d28c5f534329",
"name": "Sticky Note1"
},
{
"parameters": {
"content": "## Update utilisateur\n**Double click** to edit me. [Guide](https://docs.n8n.io/workflows/sticky-notes/)",
"height": 272,
"width": 384
},
"type": "n8n-nodes-base.stickyNote",
"position": [
736,
144
],
"typeVersion": 1,
"id": "4b4a4cf3-4b49-45af-99f1-4adfe65cc232",
"name": "Sticky Note2"
}
],
"connections": {
"Webhook": {
"main": [
[
{
"node": "Statut Mapping",
"type": "main",
"index": 0
}
]
]
},
"Statut Mapping": {
"main": [
[
{
"node": "Edit Statut",
"type": "main",
"index": 0
}
]
]
},
"Edit Statut": {
"main": [
[
{
"node": "Update Magasin",
"type": "main",
"index": 0
}
]
]
},
"Update Magasin": {
"main": [
[],
[
{
"node": "Erreur Magasin",
"type": "main",
"index": 0
}
]
]
}
},
"active": true,
"settings": {
"executionOrder": "v1",
"callerPolicy": "workflowsFromSameOwner"
},
"versionId": "27f2190d-f0f6-4d14-889d-4016c383a8c4",
"meta": {
"templateCredsSetupCompleted": true
},
"id": "X4sw0xtmubKC2a6v",
"tags": [
{
"updatedAt": "2025-09-12T22:39:32.525Z",
"createdAt": "2025-09-12T22:39:32.525Z",
"id": "ob1iUzBDY4oAYrZ0",
"name": "Achat"
},
{
"updatedAt": "2025-09-18T22:30:43.009Z",
"createdAt": "2025-09-18T22:30:43.009Z",
"id": "HoYCYFRuu4DBcbl0",
"name": "Suivis/Magasin"
}
]
}
Credentials you'll need
Each integration node will prompt for credentials when you import. We strip credential IDs before publishing — you'll add your own.
notionApi
For the full experience including quality scoring and batch install features for each workflow upgrade to Pro
About this workflow
WorkFlow 10. Uses notion. Webhook trigger; 8 nodes.
Source: https://github.com/WealthFinPilot/notion-qms-platform/blob/main/exports/workflows/wf-10-update-magasin.json — original creator credit. Request a take-down →
Related workflows
Workflows that share integrations, category, or trigger type with this one. All free to copy and import.
This workflow automates the entire lifecycle of a service-based client, combining four distinct business flows into a single view: Intake Leads: Receives a webhook from your form builder, validates th
A warm, reliable onboarding system for small businesses and studios. Captures a form submission via webhook, creates a Client record in Notion, sends a concierge-style welcome email (with scheduler +