How to do this condition?

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

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

Best,

Cam