Describe the problem/error/question
In order to simplify the creation of workflows for our end users I’d like to combine two API requests in a single operation. These API requests are use together very frequently.
What is the error message (if any)?
No error message but I’ve tried to find an answer in the docs, the forum and Quora but I couldn’t get the solution to make it work in a declarative-style node.
Node property
/* Browser Window Operations */
{
displayName: 'Operation',
name: 'operation',
type: 'options',
noDataExpression: true,
displayOptions: {
show: {
resource: ['browserWindow'],
},
},
options: [
{
name: 'Create',
value: 'createBrowserWindow',
action: 'Create browser window',
description: 'Create a new browser window',
routing: {
request: {
method: 'POST',
url: '=/sessions/{{$parameter["sessionId"]}}/windows',
},
/*
* Here I'd like to add another request to another endpoint
* with the value from the response of the first request
*/
// {
// method: 'POST',
// url: '=/sessions/{{$parameter["sessionId"]}}/windows/{{$response["windowId"]}}',
// },
},
}
],
},
Information on your n8n setup
- n8n version: 1.75.0
- Database (default: SQLite): PostgreSQL
- n8n EXECUTIONS_PROCESS setting (default: own, main):
- Running n8n via (Docker, npm, n8n cloud, desktop app): Docker (VS Code container)
- Operating system: Mac OS Sonoma