Found the solution by using the union
function.
basically, outside of the forEach loop, I created an array variable varComplete
and then inside the loop after each call to a web activity, I set another variable varTempResponse
as
@union( activity('Web1').output, varComplete)
Then, I reset the varComplete
to the value of varTempResponse
.
varComplete = varTempResponse