How is it possible to change the body content of a query depending on the selection in a variable.
The variable is configured as a query and returns this structure:
If I select one value, the body should have this structure:
{
“Parameters”: [
{
“DataSourceKey”: " the selected value 1 from variable Test p.e. Verbrauch",
“From”: “${__from:date}”,
“To”: “${__to:date}”,
“DataKind”: “$Verdichtung”,
“ValueKind”: 0,
“Resolution”: 0
}
]
}
If I select two, then like this:
{
“Parameters”: [
{
“DataSourceKey”: " the selected value 1 from variable Test p.e. Verbrauch ",
“From”: “${__from:date}”,
“To”: “${__to:date}”,
“DataKind”: “$Verdichtung”,
“ValueKind”: 0,
“Resolution”: 0
},
{
“DataSourceKey”: “the selected value 2 from variable Test p.e. Verbrauch Klaus”,
“From”: “${__from:date}”,
“To”: “${__to:date}”,
“DataKind”: “$Verdichtung”,
“ValueKind”: 0,
“Resolution”: 0
}
]
}
etc…