Describe the issue/error/question
Hello the n8n community, I am currently trying to replicate the scenario 2 from this thread: Programatically passing credentials into a Workflow
So basically in my scenario a webhook will be received with the id of the credential to use in the next HTTP node. This id will be used in the credential expression of the HTTP node.
But I have no idea on what expression format is required for the HTTP node credential.
Please share the workflow
"name": "My workflow 2",
"nodes": [
{
"parameters": {},
"id": "cb0c46fc-1d42-4c91-8147-2e71c0e2cabf",
"name": "Start",
"type": "n8n-nodes-base.start",
"typeVersion": 1,
"position": [
240,
300
]
},
{
"parameters": {
"path": "d347443f-d83f-44e0-ab7a-53da41bcfc5a",
"options": {}
},
"id": "2e625920-5137-4325-b37a-ed7d3869e46f",
"name": "Webhook",
"type": "n8n-nodes-base.webhook",
"typeVersion": 1,
"position": [
560,
300
],
"webhookId": "d347443f-d83f-44e0-ab7a-53da41bcfc5a"
},
{
"parameters": {
"authentication": "genericCredentialType",
"genericAuthType": "=id=3",
"url": "https://test.com",
"options": {}
},
"id": "278851ee-5f22-4a57-abb3-743c1d787e49",
"name": "HTTP Request",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 2,
"position": [
780,
300
]
}
],
"pinData": {},
"connections": {
"Start": {
"main": [
[]
]
},
"Webhook": {
"main": [
[
{
"node": "HTTP Request",
"type": "main",
"index": 0
}
]
]
}
},
"active": false,
"settings": {},
"id": 2,
"meta": {
"instanceId": "f035f12a1ddb2fac6450268a9ac828a068fa985e94a2d18e402888547ec2f5e8"
},
"tags": []
}
Here is where I need to add the expression (the id number 3 is an example, the id will be received from the webhook)
Information on your n8n setup
- n8n version: 0.193.5
- Database you’re using (default: SQLite): no DB
- Running n8n with the execution process [own(default), main]: ?
- Running n8n via [Docker, npm, n8n.cloud, desktop app]: Docker