How to solve this issue?

in email subject text file i put the subject as DATA(AP01) and when the robot runs it suppose to read the target email in outlook according to the subject and save the attachment but now when there are emails with subject as DATA and AP01 in the outlook the robot is saving the attachment when it is not supposed to do so as it is not the target according to the email subject text file
AP Invoice.zip (9.5 MB)

Hi @Venusha_Sree,

It may be due to this. You are using “Contains” in Flow Decision

image

Kindly change “Equals” like belowthen try it

Email.Where(Function(s) s.Subject.ToString.Equals(Subject_Setup.Split(" "c)(0).ToString)).Any Or Email.Where(Function(s) s.CC.ToString.Equals(Cc_Setup)).Any

Thanks
Rajkumar

hi do i have to change anything in the step 2 flow decision as well?

because it is still downloading the attachment of email which is not in target