Skip to main content
Nintex Community Menu Bar
Solved

Query List - stopping scheduled workflow when no results are provided

  • April 28, 2022
  • 3 replies
  • 30 views

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.

3 replies

Pyae
Forum|alt.badge.img+5
  • Scholar
  • Answer
  • April 29, 2022

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.


Forum|alt.badge.img+2
  • Author
  • Rookie
  • May 1, 2022
Thank you so much 🙂

Pyae
Forum|alt.badge.img+5
  • Scholar
  • May 25, 2022
You're welcome 🙂