When using a Value setter it’s possible to use a variable as a key, for instance: &{PropertyName}. Works great, unless you have nested data, it does not work for other instances like List: Extend with supplied data.
For example, this will not work:
{
"&{PropertyName}": "&{Value}"
}
How do you set the keyname using a variable? Or is there another approach?
Unfortunately, it was impossible to set a key name using variables on instances like List: Extend with supplied data. As you already know, it can be done by a value setter.
Currently, I’m checking with the team, I’ll update my answer if we found another approach.
Hi @steven, to make it clear, could you please provide us with a context of your issues?
Maybe you can tell us with some kind of input, and output expected.
Thanks for your example, I’ve made it even smaller/easier. The big note for me is the entity transformer → node, transform nodes does something completely different from a Data, transform data using mappers and conditions → Node Transformer, the pattern does absolutely nothing for a Node Transformer.
Yes, because both have different functionality.
I am glad that you can manage it.
We try to make another example to avoid a value-setter, since you asked for another approach.