Hello ! I was creating my custom node and was wondering if it was possible to dynamically load fields based on an operation.
Context:
- I have a set of operations (functions)
- For each operation I have different fields
From what I saw I have to manually map all my fields for each operation.
What I would like is to have all fields dynamically loaded from my server for a specific operation
For exemple having a route on my server that would dynamically define the fields for an operation
such as https://myserver.com/operations/1/fields that would return a JSON object like so:
[{
displayName: 'Company website',
name: 'domain',
type: 'string',
default: '',
description: 'The company website of input',
},
{
displayName: 'LinkedinUrl',
name: 'linkedinUrl',
type: 'string',
default: '',
description: 'The company linkedin url of input',
}]
It would allow me to change my API on my side and be automatically updated on n8n. It would remove the pain of manually mapping all the fields for each of my operations over time.
So basically my question would me more generically: Is it possible to dynamically load input fields config from an API ?