Hi there,
I’m trying to create my very first declarative-style custom node.
I need to send a simple nested object. I can get it to be displayed in the UI but the JSON output contains twice the property name.
Here’s the fixedCollection declaration :
{
displayName: 'Address',
name: 'address',
type: 'fixedCollection',
default: {},
placeholder: 'Add Address Field',
options: [
{
displayName: 'Address Fields',
name: 'address',
values: [
{
displayName: 'Street Address 1',
name: 'streetAddress1',
type: 'string',
default: '',
}
],
},
],
routing: {
send: {
type: 'body',
property: 'address',
},
},
};
And here the json ouput:
address: {
address: {
streetAddress1: "a street adress"
}
}
Seems legit but I don’t know how to remove the first node. Maybe with the preSend option ?
Thank you for your help !