Is it possible to create a new array and add items to it inside of just a ApplyToEach loop? I can't use initiate and set variable commands because I am attempting to use the parallel processing of ApplyToEach. I'd like to run 50 items at a time.
My use case is to assemble an array inside of the loop which has different case statements with different commands. When the loop is complete I will add the array to an email notification. Here is the example. MembersMail1 would be the array. Then I would like to add values to it inside of the switch/case statements.
I'm open to other ideas too if anyone has them. For example a comma delimited string of values would also work for me. Or a JSON object. I'm not sure how to implement either.
