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

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

Best,

Cam

@Venusha_Sree_Muthappan you can count emailmessage.