The idea is:
The “summarize” node should support using data of previous nodes as expression in “Fields to Split By” field.
Currently I only get an error: this.getNodeParameter(...).split is not a function
My “Summarize” node configuration is:
- Fields to Summarize:
- 1
- Aggregation: Append
- Field: html
- 1
- Fields to Split By:
{{$(‘datasource’).item.json.paygroup}}
My use case:
I generate HTML from data, and then want to group those HTMLs into buckets by a field in their original data.
Example data:
[
{
"name": "Mike",
"position": "Manager",
"paygroup": 2
},
{
"name": "Waldo",
"position": "Worker",
"paygroup": 1
},
{
"name": "Bob",
"position": "Beggar",
"paygroup": 1
}
]
With a “HTML” node I combine name + position, and in the end I want to group the HTML by their paygroup
[
{
"paygroup": 2,
"appended_html": [
"Mike (Manager)"
]
},
{
"paygroup": 1,
"appended_html": [
"Waldo (Worker)",
"Bob (Beggar)"
]
}
]
I think it would be beneficial to add this because:
It would make workflows shorter (and faster), because I wouldn’t have to put a “Merge” node before the Summarize node. (Mode: combine, Combine by: Position)
Any resources to support this?
Are you willing to work on this?
No.