Hi I new here, so I need to iterate through mail and check their subject if the subject is "Invoice I need to proceed further or else I need to throw an error after loop is completed I already created workflow but its not working when email subject is dif

Hello @Simran2 ,

If you want to throw exception at the end if all Emails are Processed then follow the steps given in below screenshot
image

In Place of Put your Business logic here for Valid Emails comment box put your logic of valid Email Processing.