Szymon
4 years agoNew Contributor II
Binary output - error pipeline - custom http codes
There is a requirement for the following:
Error pipeline for an ultra pipeline which responses with custom HTTP code, e.g. 500.
Why:
…The third party API caller shall receive a proper HTTP code...
- 3 years ago
Hi @ash42,
Do you want the output to be only one object?
If yes, then try with the following expression in a Mapper Snap:
$Names.reduce((acc,curr,ind) => acc.extend({[curr]: $Values[ind]}), {})
The output will look like this:
[ { "key1": "Value1", "key2": "Value2", "key3": "Value3" } ]
Let me know if this is the desired output.
BR,
Aleksandar.