For each UI element issue

Please see attached the workflow that I have been working on. I want to perform the tasks on each element selected however the website makes a blue block over the last open client. We it runs for the second loop I receive a error that the “source data was modified”. How do I fix this?
Simplepay - Select the client.xaml (41.4 KB)

@hwessels
welcome to the forum

Currently it looks like you are interested on the client names.

So you can first collect all clientnames only while looping over the uielements and add it to a string list. Then loop over stringlist for the processing. This allows you to avoid outdate / as invalid rated uielements, due it was modified

Hi, thank you for the feedback. What function do I use to loop over the stringlist?

HI @hwessels …Use For Each loop to loop throught the string list

How do I do this? Do I add an assign activity under the DO section of for each UI Element?