How do I attach the corresponding docs when replying an email

I am doing a project case where my department receives multiple emails from another department. Each email containing attachments to be approved.

I managed to get the robot to save all the attachments into a folder, where it is then edited.

May i request help as i dont how how to reply the initial email with the corresponding attached document. I understand i can attach documents in the “Reply to outlook mail message” activity, however, each reply will contain all the saved attachments, when i just require each reply to have their related attachment.

thank you very much!

Check the subject of the mail according to your requirement
For example
pass the output of get outlook mail message activity to for each and set type argument as mail message
Use if activity to check item.subject.contains(“department1”)
Use reply mail message to reply that department 1 attach that file according to that department 1