How to use the Stop Job activity

Hello, I have an automation that retrieves an X amount of emails from the inbox if they match certain conditions, what I need is if that amount of emails is 0 I want to stop the current job, I have searched some posts but they all mention using a for each and I only want to stop the job where the activity is.

thank you for your help.

In best practice we would use the ReFramework for that, because it handles all that perfectly.

If you don’t want to use the ReFramework, then you could use terminate workflow, see here:

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.