How to do this condition?

if there is a new email without attachment the process will fail if there is no new email will fail

Hello @Venusha_Sree_Muthappan,

On the get Mail activity, use this as a filter

“@SQL= urn:schemas:httpmail:hasattachment=true”

This will then only read emails that have an attachment.

After the Get mail activity has run, use an if on the MailMessage output such as

MailMessageVariable.count = 0
Then = Throw
Else = Continue processing.



@Venusha_Sree_Muthappan you can count emailmessage.