Forum Discussion
Hi SL12345 ,
How are you receiving your inputs? Is the input a list or object?
Assumption: input object are received as streaming object
Use a Gate snap to put all received "input" object into an array, once in an array you can use the below expression to pivot the input as header name and value
$inputs.filter((a,b,c)=> b < ($inputs.length - 1)).map(i=> i['input']).toObject((v,i)=> v, (v,i)=> $inputs[$inputs.length - 1]['input'].split(',')[i])
Is this what you're trying to achive?
ladikrishna
2 years agoNew Contributor
hi