To click each attachment, extract file names using a regex like \S+(\.[a-zA-Z]{2,4})+(\-[a-zA-Z0-9]+)*\.(xlsm|xlsx|pdf) from the text. Then, iterate over the file names in a For Each loop and use the Click activity with a dynamic selector that includes the file name for each attachment.