Skip to main content
Nintex Community Menu Bar
Solved

Query List - stopping scheduled workflow when no results are provided

  • Apr 28, 2022 6:44 PM UTC
  • 3 replies
  • 56 views
  • Translate All

Forum|alt.badge.img+2

I have a scheduled workflow that runs daily which:

  1. queries a list within the site looking for any items matching the criteria specified
  2. loops through each of the items identified and gathers information
  3. builds a string of that information
  4. sends an email with the information compiled 

I am looking for help please to figure out how to end the workflow where there are no items identified at step 1 thus preventing the email from being sent out with no information.

 

Please see screen shots below which might assist and thanks in advance for any help 🙂

Best answer by Pyae

You can add condition block and check the collection, if the collection is empty, you can end the workflow/terminate workflow action inside the condition block. So, the workflow will not continue to the following loop action and sending email.

View original

3 replies

Pyae
Forum|alt.badge.img+5
  • Scholar
  • Answer
  • Apr 29, 2022 10:07 PM UTC

You can add condition block and check the collection, if the collection is empty, you can end the workflow/terminate workflow action inside the condition block. So, the workflow will not continue to the following loop action and sending email.

Translate

Forum|alt.badge.img+2
  • Author
  • Rookie
  • May 1, 2022 7:04 PM UTC
Thank you so much 🙂
Translate

Pyae
Forum|alt.badge.img+5
  • Scholar
  • May 25, 2022 4:29 PM UTC
You're welcome 🙂
Translate