I have a function which takes array input. I want to execute the function logic for each item in the array and combine each output in single dynamic output column. I'm able to achieve it for single input. Is it possible to do for multiple inputs ?
let T = datatable(a:string, b:dynamic)
[
"hello", dynamic({"A":1,"B":2,"value1":3}),
"world", dynamic({"value1":4,"value2":5}),
];
let F = (T:(b:dynamic), input: dynamic) {
**//for each item in input. Combine b.value1 and return dynamic new column**
T | project b.value1
};
let input= dynamic(["input1", "input2"]);
// for each row in the table, function F is invoked
T | invoke F(input)
final view looks like
a b new_ouput_column
hello {"A": 1,"B": 2,"value1": 3} {"input1": 3,"input2": 3}
world {"value1": 4,"value2": 5 } {"input1": 4,"input2": 4}
