i tried recently to use UpdateContext in a ForAll loop and PowerApps marked it as an error because "This method cannot be called in ForAll". Why this limitation ? I wanted to use it to have an accumulator in the ForAll loop but PowerApps don't let me do it. I tried with Set instead buy it causes the same error.
Instead i will use a collection with only one element but it is a dirty work around.